diff options
Diffstat (limited to 'lib/mini/test.rb')
-rw-r--r-- | lib/mini/test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mini/test.rb b/lib/mini/test.rb index a8a65821a5..53715ef088 100644 --- a/lib/mini/test.rb +++ b/lib/mini/test.rb @@ -104,8 +104,8 @@ module Mini def assert_match exp, act, msg = nil msg = message(msg) { "Expected #{mu_pp(act)} to match #{mu_pp(exp)}" } - assert_respond_to act, :=~ - exp = /#{exp}/ if String === exp && String === act + assert_respond_to(act, :"=~") + (exp = /#{exp}/) if String === exp && String === act assert act =~ exp, msg end |