I am trying to run an RSpec test, and I want to detect if the test failed in the after method. I have something like this right now:
after
after(:each
In addition to Daniel's answer, in Rspec3 the example method was deleted (see here for more info).
You will have to do something like this:
after(:each) do |example| if example.exception # ... end end