$NetBSD: patch-ae,v 1.1 2010/09/10 05:41:27 taca Exp $ Fix for Ruby 1.9, commit df5446c9f8ed1b8cfd70 from http://github.com/mutoh/gettext/commits/master. --- test/test_parser.rb.orig 2010-08-27 07:41:29.000000000 +0000 +++ test/test_parser.rb @@ -7,7 +7,7 @@ require 'gettext/tools/rgettext' class TestGetTextParser < Test::Unit::TestCase def test_ruby - @ary = GetText::RGetText.parse('testlib/gettext.rb') + @ary = GetText::RGetText.parse(['testlib/gettext.rb']) assert_target 'aaa', ['testlib/gettext.rb:8'] assert_target 'aaa\n', ['testlib/gettext.rb:12'] @@ -36,7 +36,7 @@ class TestGetTextParser < Test::Unit::Te end def test_ruby_N - @ary = GetText::RGetText.parse('testlib/N_.rb') + @ary = GetText::RGetText.parse(['testlib/N_.rb']) assert_target 'aaa', ['testlib/N_.rb:8'] assert_target 'aaa\n', ['testlib/N_.rb:12'] @@ -54,7 +54,7 @@ class TestGetTextParser < Test::Unit::Te end def test_ruby_n - @ary = GetText::RGetText.parse('testlib/ngettext.rb') + @ary = GetText::RGetText.parse(['testlib/ngettext.rb']) assert_plural_target "aaa", "aaa2", ['testlib/ngettext.rb:8'] assert_plural_target "bbb\\n", "ccc2\\nccc2", ['testlib/ngettext.rb:12'] assert_plural_target "ddd\\nddd", "ddd2\\nddd2", ['testlib/ngettext.rb:16'] @@ -72,7 +72,7 @@ class TestGetTextParser < Test::Unit::Te end def test_ruby_p - @ary = GetText::RGetText.parse('testlib/pgettext.rb') + @ary = GetText::RGetText.parse(['testlib/pgettext.rb']) assert_target_in_context "AAA", "BBB", ["testlib/pgettext.rb:8", "testlib/pgettext.rb:12"] assert_target_in_context "AAA|BBB", "CCC", ["testlib/pgettext.rb:16"] assert_target_in_context "AAA", "CCC", ["testlib/pgettext.rb:20"]