1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
naruse 2013-11-06 06:25:18 +00:00
parent e3d72485ca
commit e7194e9648

View file

@ -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