diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 44f71d3495..6724634691 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -2155,7 +2155,7 @@ class TestArray < Test::Unit::TestCase assert_equal([], a.rotate!(-13)) a = [].freeze e = assert_raise(RuntimeError) {a.rotate!} - assert_match(/can't modify frozen array/, e.message) + assert_match(/can't modify frozen/, e.message) a = [1,2,3] assert_raise(ArgumentError) { a.rotate!(1, 1) } end