[rspec-devel] [ rspec-Patches-15461 ] RaiseError should give at least the first line of backtrace when it encounters an unexpected exception

noreply at rubyforge.org noreply at rubyforge.org
Thu Nov 8 14:31:05 EST 2007


Patches item #15461, was opened at 2007-11-08 11:31
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=15461&group_id=797

Category: expectation module
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Alan Shields (sshields)
Assigned to: Nobody (None)
Summary: RaiseError should give at least the first line of backtrace when it encounters an unexpected exception

Initial Comment:
which is more useful:

NoMethodError in 'blah... should allow the user object to be passed in'
undefined method `null?' for #<User:0x34cf81c>
/Users/sshields/code/appsw/config/../vendor/plugins/dollars_and_cents/lib/dollars_and_cents.rb:48:in `method_missing'
./spec/models/blah_spec.rb:46:
script/spec:4:

ooooor

'blah... should allow the user object to be passed in' FAILED
expected no Exception, got #<NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.to_time> from /Users/sshields/code/appsw/config/../app/models/calculation.rb:329:in `compute_range_rollup'
./spec/models/calculation_spec.rb:49:
script/spec:4:

Work paid for by 6bar8.com - makers of sweetspot.dm

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=15461&group_id=797


More information about the rspec-devel mailing list