[rspec-users] Start ruby debugger if an rspec test fails

Clifford Heath clifford.heath at gmail.com
Tue Apr 30 05:23:01 UTC 2013


On 30/04/2013, at 10:42 AM, Vighnesh Rege <vighnesh1987 at gmail.com> wrote:
> I was wondering if any of you knows the answer to this:
> http://stackoverflow.com/questions/16290365/start-ruby-debugger-if-rspec-test-fails

I posted my answer to this, which is to catch the ExpectationNotMatched exception as it's being created.

I think the solution will also interest my local Rails peeps, so I'm Cc'ing it there too.

Clifford Heath, Data Constellation, http://dataconstellation.com
Agile Information Management and Design
Skype: cjheath, Ph: (+61/0)401-533-540

More information about the rspec-users mailing list