method

assert_raises

assert_raises(*exp)
public

Fails unless the block raises one of exp. Returns the exception matched so you can check the message, attributes, etc.