[rspec-users] Nicer failure message formatting

Tom Locke tom at hobocentral.net
Fri Jun 22 10:44:31 EDT 2007


> How about the values indented?
>
> expected:
>   "this is a very long string blah blah"
> got:
>   "this is a very very long string blah blah"
> (using ==)
>

I like that style.

better still with PP:

PP.pp(value, "  ").gsub("\n", "\n  ")

Tom



More information about the rspec-users mailing list