[rspec-users] Nicer failure message formatting

Scott Sehlhorst scott at tynerblain.com
Fri Jun 22 10:08:25 EDT 2007


I think it is a great idea.  Noticeably better for long strings (and
arrays), no worse for the short ones.

+1

On 6/22/07, Wincent Colaiuta <win at wincent.com> wrote:
>
> El 22/6/2007, a las 14:36, Tom Locke escribió:
>
> > Easier to read:
> >
> > expected:
> > "this is a very long string blah blah"
> > got:
> > "this is a very very long string blah blah"
> > (using ==)
> >
> > Comments?
>
> For me even easier to read would be:
>
> expected: "this is a very long string blah blah"
> got     : "this is a very very long string blah blah"
> (using ==)
>
> I'm inclined to think that this formatting should only be employed
> for strings over a certain length. Really short strings wouldn't
> benefit from it (eg. expected "foo", got "bar").
>
> Cheers,
> Wincent
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Scott Sehlhorst, President Tyner Blain LLC
http://tynerblain.com/blog
http://tynerblain.com/nexus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070622/04c88870/attachment.html 


More information about the rspec-users mailing list