From e7194e96484abe4d5b988fc78717a5e922202af7 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 6 Nov 2013 06:25:18 +0000 Subject: 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 --- test/ostruct/test_ostruct.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ostruct/test_ostruct.rb') 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 -- cgit v1.2.3