test/tools/test_msgmerge.rb in gettext-3.2.9 vs test/tools/test_msgmerge.rb in gettext-3.3.0
- old
+ new
@@ -290,11 +290,10 @@
new_msgid = base_msgid + ("!" * 10)
@po[base_msgid] = "bonjour"
@pot[new_msgid] = ""
merged_po = merge
- puts merged_po
assert_equal("bonjour", merged_po[new_msgid].msgstr)
assert_equal("fuzzy", merged_po[new_msgid].flag)
end
def test_merged_entry_from_fuzzy_entry
@@ -479,10 +478,12 @@
EOP
end
end
class TestMessage < self
+ include GetTextTestUtils
+
def po_content
<<-PO
#{po_header(@po_formatted_time, @po_formatted_time)}
#, fuzzy
@@ -490,10 +491,12 @@
msgstr "Translated World"
PO
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
msgid "Hello"
msgstr ""