Is shoulda destroying my backtraces?

5 views
Skip to first unread message

J. Pablo Fernández

unread,
Nov 18, 2010, 7:45:00 AM11/18/10
to shoulda
Hello,

I have a test more or less like this:

class FormDefinitionTest < ActiveSupport::TestCase
context "a form_definition" do
setup do
@definition = SeedData.form_definition
# ...

I've purposely added a

raise "blah"

somewhere down the road and I get this error:

RuntimeError: blah
test/unit/form_definition_test.rb:79:in `__bind_1290079321_362430'

when I should be getting something along:


/Users/pupeno/projectx/db/seed/sheet_definitions.rb:17:in
`sheet_definition': blah (RuntimeError)
from /Users/pupeno/projectx/db/seed/form_definitions.rb:4:in
`form_definition'
from /Users/pupeno/projectx/test/unit/form_definition_test.rb:12
from -e:1:in `load'
from -e:1

Any ideas what is sanitizing/destroying my backtraces? My suspicious
is shoulda because the when the exception happens inside a setup or
should is whet it happens.

This is a Rails 3 project, in case that's important.
Reply all
Reply to author
Forward
0 new messages