diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-07 15:33:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-07 15:33:17 +0000 |
commit | d45c4a810705d8b8822c5840c236657cdbe26470 (patch) | |
tree | ba27f1b95171dd9b3bd855537ed9272f59db77b0 /lib/test | |
parent | 3802c43ea16b6691121f69b4cbe392fc0d42ac34 (diff) | |
download | ruby-d45c4a810705d8b8822c5840c236657cdbe26470.tar.gz |
* lib/test/unit/assertions.rb (assert_no_match): don't count up as two
assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit/assertions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index 0a31915bd9..c15432f058 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -92,6 +92,7 @@ module Test def assert_no_match(regexp, string, msg=nil) assert_instance_of(Regexp, regexp, "The first argument to assert_no_match should be a Regexp.") + self._assertions -= 1 msg = message(msg) { "<#{mu_pp(regexp)}> expected to not match\n<#{mu_pp(string)}>" } assert(regexp !~ string, msg) end |