[rspec-devel] [ rspec-Bugs-6203 ] Failure messages are misleading - consinder using inspect

noreply at rubyforge.org noreply at rubyforge.org
Tue Oct 17 15:36:24 EDT 2006


Bugs item #6203, was opened at 2006-10-17 15:36
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6203&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Aslak Hellesoy (aslak_hellesoy)
Assigned to: Aslak Hellesoy (aslak_hellesoy)
Summary: Failure messages are misleading - consinder using inspect

Initial Comment:
1.should == [1]

fails with the message:

1 should == 1

however:

[1].should == 1

fails with the message:

[1] should == 1

I think we need to look into using Object.inspect for failure messages

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

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


More information about the rspec-devel mailing list