To assert exception:
assert_raises FooError do
bar.do_it
end
To assert exception message:
As per API doc, assert_raises returns the exception matched so you can check the message, attributes, etc.
exception = assert_raises FooError do
bar.do_it
end
assert_equal('Foo', exception.message)