You should be able to use `assert_raise` here.