What is the minitest equivalent of assert_nothing_raised?

Though it was in the test/unit module for 1.8, 1.9’s minitest module
seems to lack an assert_nothing_raised method. That is kind of
frustrating. I’ll give 10 thank-yous to the first person who knows how
to write a minitest compatible test for what in Test::Unit looked
like:

def test_no_error_is_raised
assert_nothing_raised do
method_whatever(*args)
end
end

Thanks (that one is free),
Tim

Hi,

On Nov 20, 2010, at 2:35 PM, timr wrote:

Though it was in the test/unit module for 1.8, 1.9’s minitest module
seems to lack an assert_nothing_raised method.

It was removed because it’s not useful enough. Test the proper behavior
of your method, not the fact that it doesn’t raise an exception.

10.times{puts “Thanks John”}
Tim