[rspec-devel] [ rspec-Feature Requests-12710 ] Error messages on multiple lines

noreply at rubyforge.org noreply at rubyforge.org
Mon Jul 30 23:10:04 EDT 2007


Feature Requests item #12710, was opened at 2007-07-31 02:32
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=12710&group_id=797

Category: expectation module
Group: None
Status: Open
Priority: 3
Submitted By: Brian Takita (btakita)
Assigned to: Nobody (None)
Summary: Error messages on multiple lines

Initial Comment:
Currently its:

expected <SomeLongObject .... > got <AnotherLongObject ... >

This makes it very difficult to see the differences once the textual length of the objects are longer than the length of the console.

It would be MUCH easier to read if the output were formatted on multiple lines:

expected
<SomeLongObject ... >
got
<AnotherLongObject ... >

----------------------------------------------------------------------

Comment By: Kyle Hargraves (philodespotos)
Date: 2007-07-31 03:10

Message:
This is actually already in trunk:

'Foo should == #<Foo:really long description>'
expected: #<Foo:same really long description>
     got: #<Foo:another really long description>

In a -users thread (maybe last month?), someone mentioned it'd also be nice to have semi-intelligent use of pretty printing if the inspect string for the object were obscenely long.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=12710&group_id=797


More information about the rspec-devel mailing list