[rspec-users] Nicer failure message formatting

aslak hellesoy aslak.hellesoy at gmail.com
Fri Jun 22 09:08:05 EDT 2007


On 6/22/07, Tom Locke <tom at hobocentral.net> wrote:
> 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?
>

Try the --diff option. But I agree that we should consider breaking
things up like you suggest anyway.

What do others think?

Aslak

> Tom
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list