ruby-gettext/gettext@926efc6 [master] test: suppress expected warnings

4 views
Skip to first unread message

Kouhei Sutou

unread,
Jun 16, 2018, 6:51:15 PM6/16/18
to ruby-gett...@googlegroups.com
Author
Kouhei Sutou <k...@clear-code.com>
Date
2018-06-17 07:50:54 +0900 (Sun, 17 Jun 2018)
New Revision
926efc6c34e87467c2455b08c3be47ae715e5785
Message
test: suppress expected warnings
Modified files
  Modified: test/tools/test_msgmerge.rb (+5 -1)
===================================================================
...
481
482
483
 
 
484
485
486
...
492
493
494
495
 
 
 
496
497
498
...
481
482
483
484
485
486
487
488
...
494
495
496
 
497
498
499
500
501
502
@@ -481,6 +481,8 @@ EOP
       end
 
       class TestMessage < self
+        include GetTextTestUtils
+
         def po_content
           <<-PO
 #{po_header(@po_formatted_time, @po_formatted_time)}
@@ -492,7 +494,9 @@ msgstr "Translated World"
         end
 
         def test_merge_metadata
-          @msgmerge.run("--update", @po_file_path, @pot_file_path)
+          suppress_warning do
+            @msgmerge.run("--update", @po_file_path, @pot_file_path)
+          end
           assert_equal(<<-PO, File.read(@po_file_path))
 #{po_header(@pot_formatted_time, @po_formatted_time)}
 #: hello.rb:1
Reply all
Reply to author
Forward
0 new messages