Forum: RSpec can I get more details in the "rake spec" output (e.g. for eql fail, what was the actual value that

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D5df9fcd7ef4c3c937435d7d6adeab2a?d=identicon&s=25 Greg Hauptmann (Guest)
on 2008-10-07 05:25
(Received via mailing list)
Hi,
Can I get more details in the "rake spec" output (e.g. for eql fail,
what
was the actual value that was returned)??? Another example might be what
the
exception actually is in a case the "should not raise exception"
fails...


Regards
Greg
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2008-10-07 05:45
(Received via mailing list)
What are you currently seeing?  afaik, you should currently see all the
dots and a few F's when specs fail, and then after that you'll see
detailed failure messages including backtraces.

Pat


"Greg Hauptmann" <greg.hauptmann.ruby@gmail.com> writes:
D5df9fcd7ef4c3c937435d7d6adeab2a?d=identicon&s=25 Greg Hauptmann (Guest)
on 2008-10-07 06:26
(Received via mailing list)
here's some examples:

'Recurring.add_projections: weekly & non-reconcile & starting in past
should
update balances appropriately' FAILED
expected 1001, got #<BigDecimal:22a68d4,'0.1E4',4(12)> (using .eql?)
./spec/models/recurring_spec.rb:140:
==> Oh, actually seems to work but gives the figure in Engineering
notation
- I wonder if there's a way to improve the readability here?

'Recurring.add projections (perform credit card payment) should
calculate
amount based on offset provided' FAILED
expected no Exception, got #<RuntimeError: It should display this
exception>
==> Actually does show exception name, but doesn't give a back trace?
Is
there a way to see the back trace if required?

tks
49de4cd2f26705785cbef2b15a9df7aa?d=identicon&s=25 Nick Hoffman (Guest)
on 2008-10-07 18:10
(Received via mailing list)
On 2008-10-07, at 00:25, Greg Hauptmann wrote:
> 'Recurring.add projections (perform credit card payment) should
> calculate amount based on offset provided' FAILED
> expected no Exception, got #<RuntimeError: It should display this
> exception>
> ==> Actually does show exception name, but doesn't give a back
> trace?  Is there a way to see the back trace if required?

Hi Greg. ``rake spec'' accepts --trace .

Cheers,
Nick
This topic is locked and can not be replied to.