summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-30 09:26:27 +0000
committerryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-30 09:26:27 +0000
commit70365e5debc95ca98d5564f196a1b49323758d82 (patch)
tree561662713b62b9c1f7530a1096a4b34c4c5274aa /lib
parentbf6c750c350b021578c3c446407315c404d6652b (diff)
downloadruby-70365e5debc95ca98d5564f196a1b49323758d82.tar.gz
Imported minitest 1.3.1 r4506.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/minitest/unit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb
index e2fc134bdd..5f2fa5c99e 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