diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-21 11:13:28 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-21 11:13:28 +0000 |
| commit | e502448b1307e0285ddd729e404378f3d270532f (patch) | |
| tree | 44f0351fce4d1c8a59acda993ef3630d0733f21b /lib | |
| parent | c814ec80c7d06c14f4b38f6c537ef186a92d73e3 (diff) | |
| download | ruby-e502448b1307e0285ddd729e404378f3d270532f.tar.gz ruby-e502448b1307e0285ddd729e404378f3d270532f.tar.xz ruby-e502448b1307e0285ddd729e404378f3d270532f.zip | |
* lib/test/unit.rb (assert_nothing_raised): set backtrace.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/test/unit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 0674ad4bf..57ae020b2 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -82,7 +82,9 @@ module Test if ((args.empty? && !e.instance_of?(MiniTest::Assertion)) || args.any? {|a| a.instance_of?(Module) ? e.is_a?(a) : e.class == a }) msg = message(msg) { "Exception raised:\n<#{mu_pp(e)}>" } - assert(false, msg) + exc = MiniTest::Assertion.new(msg.call) + exc.set_backtrace(e.backtrace) + raise exc else raise end |
