From be0ac890f6b24d1b608c96a32eb6e453e78dee62 Mon Sep 17 00:00:00 2001 From: yugui Date: Tue, 30 Dec 2008 11:05:31 +0000 Subject: merges r21188 from trunk into ruby_1_9_1. Imported minitest 1.3.1 r4506. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/minitest/unit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb index e2fc134bd..5f2fa5c99 100644 --- a/lib/minitest/unit.rb +++ b/lib/minitest/unit.rb @@ -119,7 +119,7 @@ module MiniTest msg = message(msg) { "Expected #{mu_pp(exp)} to match #{mu_pp(act)}" } assert_respond_to act, :"=~" exp = /#{Regexp.escape(exp)}/ if String === exp && String === act - assert act =~ exp, msg + assert exp =~ act, msg end def assert_nil obj, msg = nil @@ -283,7 +283,7 @@ module MiniTest msg = message(msg) { "Expected #{mu_pp(exp)} to not match #{mu_pp(act)}" } assert_respond_to act, :"=~" exp = /#{Regexp.escape(exp)}/ if String === exp && String === act - refute act =~ exp, msg + refute exp =~ act, msg end def refute_nil obj, msg = nil -- cgit