[rspec-users] Nicer failure message formatting

Tom Locke tom at hobocentral.net
Fri Jun 22 08:36:19 EDT 2007


Hi

Are there any tools around that make rspec's failure messages easier  
to read?

unit_diff from ZenTest doesn't seem to work - unless I missed something.

A simple but very helpful improvement would be to use more line- 
breaks, e.g.

Current output:

expected "this is a very long string blah blah", got "this is a very  
very long string blah blah" (using ==)

Easier to read:

expected:
"this is a very long string blah blah"
got:
"this is a very very long string blah blah"
(using ==)

Comments?

Tom


More information about the rspec-users mailing list