Checking for any exception
问题 Using MiniTest spec, I can test that code raises a specific exception as follows: proc { foo.do_bar }.must_raise SomeException But, I don't care what the specific exception is, I just want to verify that some exception is thrown. If I, or another developer, decides to change what exception is thrown by Foo#do_bar, my test wouldn't have to change if the expected exception was specified generally enough. That is, I would like to write the test this way (Exception is an ancestor of class