Bug #2413
closedMiniTest::Assertions#assert_raises ignores message
Description
=begin
% cat test_assert_raise.rb
require 'test/unit'
class TestFoo < Test::Unit::TestCase
def test_foo
assert_raise(RuntimeError, "should show this message") do
end
end
end
% ruby1.8 -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
% ruby1.8 test_assert_raise.rb
Loaded suite test_assert_raise
Started
F
Finished in 0.021458 seconds.
- Failure:
test_foo(TestFoo) [test_assert_raise.rb:5]:
should show this message.
exception expected but none was thrown.
1 tests, 1 assertions, 1 failures, 0 errors
% ruby-trunk -v
ruby 1.9.2dev (2009-11-30 trunk 25963) [i686-linux]
% ruby-trunk test_assert_raise.rb
Loaded suite test_assert_raise
Started
F
Finished in 0.002544 seconds.
- Failure:
test_foo(TestFoo) [test_assert_raise.rb:5]:
RuntimeError expected but nothing was raised.
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
%
=end
Updated by naruse (Yui NARUSE) about 15 years ago
- Status changed from Open to Assigned
- Assignee set to zenspider (Ryan Davis)
- Target version set to 1.9.2
=begin
=end
Updated by zenspider (Ryan Davis) almost 15 years ago
- Status changed from Assigned to Closed
=begin
Fixed. Will go out in a release shortly and merged to trunk shortly after that.
Thank you for the report.
=end