I''m porting an app from 2.3 to 3.0, have errors in my test suite, and don''t get enough info to figure out where these occur. See the example below; that''s all the feedback I get for an exception raised in a view. Suggestions on how I revert to the 2.x behaviour? ____________________ 1) Error: test_should_show_pet(PetsControllerTest): ActionView::Template::Error: undefined method `name'' for nil:NilClass Isak -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Vandenberk
2010-Jul-06 10:24 UTC
Re: Displaying the full stack trace for test errors?
One way to do this is to export the BACKTRACE environment variable in the shell executing your Rails 3.0 unit or functional tests: e.g. BACKTRACE=blegga ruby test/unit/my_unit_test.rb (setting the BACKTRACE environment variable suppresses the Rails backtrace filter -- see also test_help.rb in railties) Peter On Jun 23, 2:22 pm, Isak <isak.han...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m porting an app from 2.3 to 3.0, have errors in my test suite, and > don''t get enough info to figure out where these occur. See the example > below; that''s all the feedback I get for an exception raised in a > view. > > Suggestions on how I revert to the 2.x behaviour? > > ____________________ > 1) Error: > test_should_show_pet(PetsControllerTest): > ActionView::Template::Error: undefined method `name'' for nil:NilClass > > Isak-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.