you should assign the exception to check the message:

```ruby
e = assert_raises(XX) {}

assert_equals "<expected>", e.message
```