summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-12 06:15:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-12 06:15:30 +0000
commitc00428ed9ec5f54c6245642650c8d7c463607248 (patch)
treeca949623c717ae3065eadd55422cc38ca8dc70cf /test
parent8e8e34319ba6d9457b3ffa374738baa41a96be05 (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_struct.rb2
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)