How to get rspec-2 to give the full trace associated with a test failure? How to get rspec-2 to give the full trace associated with a test failure? ruby ruby

How to get rspec-2 to give the full trace associated with a test failure?


You must run rspec with -b option to see full backtraces


Another (easier) alternative is to edit the .rspec file, and add the backtrace option.It should look somewhat like this:

--colour--backtrace

That will give you the full backtrace.Hope this helps.


This will also work:

# rails_helper.rbRSpec.configure do |config|  config.full_backtrace = trueend