I have a Rails project and use RSpec as a testing framework. What I need is to subscribe to the event when some matcher fails, e.g. I got this:
true.should be_false
I want to do some action on every fail. Is this functionality provided by the RSpec?
Check out the hooks, not certain it will help but where it passes example in to the block (in the docs) you may be able to get the result…
https://www.relishapp.com/rspec/rspec-core/v/2-0/docs/hooks