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 | 1e2be1bfe0cc47d5267c058d995389215cd22fcf (patch) | |
| tree | ba27f1b95171dd9b3bd855537ed9272f59db77b0 /lib | |
| parent | fb98930a65a7659aa97248605ba53550e58ea7da (diff) | |
| download | ruby-1e2be1bfe0cc47d5267c058d995389215cd22fcf.tar.gz ruby-1e2be1bfe0cc47d5267c058d995389215cd22fcf.tar.xz ruby-1e2be1bfe0cc47d5267c058d995389215cd22fcf.zip | |
* lib/test/unit/assertions.rb (assert_no_match): don't count up as two
assertions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 0a31915bd..c15432f05 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 |
