test/test_po.rb in gettext-3.0.3 vs test/test_po.rb in gettext-3.0.4

- old
+ new

@@ -255,10 +255,28 @@ msgid "World" msgstr "" PO end + def test_reference + @po.order = :reference + assert_equal(<<-PO, @po.to_s) +#: hello.rb:1 +msgid "Hello" +msgstr "" + +#: hello.rb:2 +msgid "World" +msgstr "" + +#: hello.rb:3 +msgid "Hello World" +msgstr "" + PO + end + def test_references + raise "Remove :references support!" if GetText::VERSION >= "4.0.0" @po.order = :references assert_equal(<<-PO, @po.to_s) #: hello.rb:1 msgid "Hello" msgstr ""