From c00428ed9ec5f54c6245642650c8d7c463607248 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 12 Aug 2009 06:15:30 +0000 Subject: [PATCH] * test/ruby/test_struct.rb (test_inspect): use assert_match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_struct.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("#", o.inspect) o.a = o - assert(o.inspect =~ /^#:...>>$/) + assert_match(/^#:...>>$/, o.inspect) Struct.new("Foo", :a) o = Struct::Foo.new(1)