diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_struct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb index 6c0e1f4fb2..7be05c00d2 100644 --- a/test/ruby/test_struct.rb +++ b/test/ruby/test_struct.rb @@ -122,7 +122,7 @@ class TestStruct < Test::Unit::TestCase o = klass.new(1) assert_equal("#<struct a=1>", o.inspect) o.a = o - assert(o.inspect =~ /^#<struct a=#<struct #<.*?>:...>>$/) + assert_match(/^#<struct a=#<struct #<.*?>:...>>$/, o.inspect) Struct.new("Foo", :a) o = Struct::Foo.new(1) |