diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-16 04:57:54 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-16 04:57:54 +0000 |
| commit | e1da6529e01659c49267c7e9fe8fe337772bb63d (patch) | |
| tree | 8e1691f7fd8f8f9f14ec35c167ec8121677313d3 | |
| parent | d07fd56216221fffe995e9cad95999d4f608dae0 (diff) | |
* test/minitest/test_mini_test.rb: the number of assertions must be
exactly equal to the number of assertion method calls that the end-user
would write. [ruby-dev:37703]
* test/minitest/test_mini_spec.rb: ditto.
* lib/minitest/unit.rb: ditto.
Patch by David Flanagan <david AT davidflanagan.com>. [ruby-core:21350]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | test/minitest/test_mini_spec.rb | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -4,6 +4,8 @@ Fri Jan 16 13:28:09 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp> exactly equal to the number of assertion method calls that the end-user would write. [ruby-dev:37703] + * test/minitest/test_mini_spec.rb: ditto. + * lib/minitest/unit.rb: ditto. Patch by David Flanagan <david AT davidflanagan.com>. [ruby-core:21350] diff --git a/test/minitest/test_mini_spec.rb b/test/minitest/test_mini_spec.rb index f7cd60acd..81e3a6192 100644 --- a/test/minitest/test_mini_spec.rb +++ b/test/minitest/test_mini_spec.rb @@ -73,7 +73,7 @@ describe MiniTest::Spec do end it "needs to verify regexp matches" do - @assertion_count = 6 + @assertion_count = 4 "blah".must_match(/\w+/).must_equal true proc { "blah".must_match(/\d+/) }.must_raise MiniTest::Assertion @@ -140,7 +140,7 @@ describe MiniTest::Spec do end it "needs to verify mismatch" do - @assertion_count = 6 + @assertion_count = 4 "blah".wont_match(/\d+/).must_equal false proc { "blah".wont_match(/\w+/) }.must_raise MiniTest::Assertion end |
