summaryrefslogtreecommitdiffstats
path: root/lib/minitest
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-20 09:53:46 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-20 09:53:46 +0000
commit8401da7104704353cd3e58e78b349642f1d123ee (patch)
treecca4e7dd0165aa250051c40604ccffbc7ac4d5ea /lib/minitest
parentb1d012a3bd9221ee83f0387d596765a910811254 (diff)
downloadruby-8401da7104704353cd3e58e78b349642f1d123ee.tar.gz
ruby-8401da7104704353cd3e58e78b349642f1d123ee.tar.xz
ruby-8401da7104704353cd3e58e78b349642f1d123ee.zip
* Reverts r21598 and r21599 because the original behavior is
intentional. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/minitest')
-rw-r--r--lib/minitest/unit.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb
index 9a7239bac..0f71126b0 100644
--- a/lib/minitest/unit.rb
+++ b/lib/minitest/unit.rb
@@ -76,7 +76,6 @@ module MiniTest
def assert_empty obj, msg = nil
msg = message(msg) { "Expected #{obj.inspect} to be empty" }
assert_respond_to obj, :empty?
- self._assertions -= 1
assert obj.empty?, msg
end
@@ -98,7 +97,6 @@ module MiniTest
def assert_includes collection, obj, msg = nil
msg = message(msg) { "Expected #{mu_pp(collection)} to include #{mu_pp(obj)}" }
assert_respond_to collection, :include?
- self._assertions -= 1
assert collection.include?(obj), msg
end
@@ -120,7 +118,6 @@ module MiniTest
def assert_match exp, act, msg = nil
msg = message(msg) { "Expected #{mu_pp(exp)} to match #{mu_pp(act)}" }
assert_respond_to act, :"=~"
- self._assertions -= 1
exp = /#{Regexp.escape(exp)}/ if String === exp && String === act
assert exp =~ act, msg
end
@@ -244,7 +241,6 @@ module MiniTest
def refute_empty obj, msg = nil
msg = message(msg) { "Expected #{obj.inspect} to not be empty" }
assert_respond_to obj, :empty?
- self._assertions -= 1
refute obj.empty?, msg
end
@@ -266,7 +262,6 @@ module MiniTest
def refute_includes collection, obj, msg = nil
msg = message(msg) { "Expected #{mu_pp(collection)} to not include #{mu_pp(obj)}" }
assert_respond_to collection, :include?
- self._assertions -= 1
refute collection.include?(obj), msg
end
@@ -287,7 +282,6 @@ module MiniTest
def refute_match exp, act, msg = nil
msg = message(msg) { "Expected #{mu_pp(exp)} to not match #{mu_pp(act)}" }
assert_respond_to act, :"=~"
- self._assertions -= 1
exp = /#{Regexp.escape(exp)}/ if String === exp && String === act
refute exp =~ act, msg
end