diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-06 06:25:18 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-06 06:25:18 +0000 |
commit | e7194e96484abe4d5b988fc78717a5e922202af7 (patch) | |
tree | 1fe6cd4399d4f085d8a66ee313a265ba05e297cb /test | |
parent | e3d72485cae0fce61b415b5365c2a2cf99d63f48 (diff) | |
download | ruby-e7194e96484abe4d5b988fc78717a5e922202af7.tar.gz |
Suppress warnings: ambiguous first argument; put parentheses or even spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ostruct/test_ostruct.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb index 70335f44af..14bc2b2da8 100644 --- a/test/ostruct/test_ostruct.rb +++ b/test/ostruct/test_ostruct.rb @@ -131,8 +131,8 @@ class TC_OpenStruct < Test::Unit::TestCase e = assert_raise(NoMethodError) { os.foo true } assert_equal :foo, e.name assert_equal [true], e.args - assert_match /#{__callee__}/, e.backtrace[0] + assert_match(/#{__callee__}/, e.backtrace[0]) e = assert_raise(ArgumentError) { os.send :foo=, true, true } - assert_match /#{__callee__}/, e.backtrace[0] + assert_match(/#{__callee__}/, e.backtrace[0]) end end |