method
assert_raises
v2_1_10 -
Show latest stable
- Class:
MiniTest::Assertions
assert_raises(*exp)public
Fails unless the block raises one of exp. Returns the exception matched so you can check the message, attributes, etc.
assert_raises(*exp)Fails unless the block raises one of exp. Returns the exception matched so you can check the message, attributes, etc.