How to use RSpec's should_raise with any kind of exception?

Viewed 88752

I'd like to do something like this:

some_method.should_raise <any kind of exception, I don't care>

How should I do this?

some_method.should_raise exception

... doesn't work.

5 Answers
Related