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:
parent
e3d72485ca
commit
e7194e9648
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue