diff options
| author | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-02 02:20:42 +0000 |
|---|---|---|
| committer | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-02 02:20:42 +0000 |
| commit | dab02799d72bdcce27dfb07869755b3b6519c3ed (patch) | |
| tree | c7f409e15a07e445cdb5ee22335735eb1e75c229 /test/testunit/test_assertions.rb | |
| parent | d8b6d8b933720565cf111d5a72319489ed2effd6 (diff) | |
| download | ruby-dab02799d72bdcce27dfb07869755b3b6519c3ed.tar.gz ruby-dab02799d72bdcce27dfb07869755b3b6519c3ed.tar.xz ruby-dab02799d72bdcce27dfb07869755b3b6519c3ed.zip | |
* lib/test/unit/assertions.rb: should not capture an
AssertionFailedError unless explicitly requested.
* test/testunit/test_assertions.rb: ditto.
* test/testunit/collector/test_objectspace.rb: fixed a test failure
caused by methods being returned in different orders on different
platforms by moving test sorting from TestSuite into the locations
where suites are constructed. [ruby-talk:83156]
* lib/test/unit/testcase.rb: ditto.
* lib/test/unit/testsuite.rb: ditto.
* lib/test/unit/collector/objectspace.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit/test_assertions.rb')
| -rw-r--r-- | test/testunit/test_assertions.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testunit/test_assertions.rb b/test/testunit/test_assertions.rb index ee52a503a..ec4b2c0c1 100644 --- a/test/testunit/test_assertions.rb +++ b/test/testunit/test_assertions.rb @@ -283,6 +283,11 @@ module Test raise "Error" } } + check_fails("Failure") do + assert_nothing_raised do + flunk("Failure") + end + end end def test_flunk |
