[rspec-users] Nicer failure message formatting
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.
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").
> rspec-users mailing list
> rspec-users at rubyforge.org
Scott Sehlhorst, President Tyner Blain LLC
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users