[rspec-users] detecting status of a spec in after block

vishnu pathsny at gmail.com
Thu Jan 20 09:17:46 EST 2011

   inside an after :each block, whats the best way to find out if the
current spec has run? Right now the only solution I have is
self.example.instance_variable_get(:@exception).nil?. Is there a
better solution?

Also, is there an on_error hook I can use instead of an after :each block?


More information about the rspec-users mailing list