Search code examples
ruby-on-railsruby-on-rails-3unit-testing

Unit Tests w/ Full Stack Traces


This seems like a stupid question, but I could not find the answer anywhere. I am using Rails 3.1 with Test::Unit.

When a test fails I only see the top of the stack, e.g.:

ERROR creating a message sends emails (1.35s) 
          NoMethodError: undefined method `project' for nil:NilClass
      /Users/ghempton/.rvm/gems/ruby-1.9.2-p180@gt/gems/activesupport-3.1.3/lib/active_support/whiny_nil.rb:48:in `method_missing'

How do I see the full stack trace?


Solution

  • I wound up fixing this by updating the turn gem which formats the test output.