You don't have to change this bit,`assert_raises` returns an Exception, so you may do:

```ruby
exception = assert_raises NameError do
  #...
end

assert_equal "invalid class attribute name: 1nvalid", exception.message
```