diff options
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index f3b08154c8..9a3a0f8e1a 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2284,7 +2284,7 @@ class TestIO < Test::Unit::TestCase def o.to_open(**kw); kw; end assert_equal({:a=>1}, open(o, a: 1)) - w = /The last argument is used as the keyword parameter.*for `(to_)?open'/m + w = /The last argument is used as keyword parameters.*The called method `(to_)?open'/m redefined = nil w.singleton_class.define_method(:===) do |s| match = super(s) |