you can use `e = assert_raises` instead of the begin rescue.