[rspec-devel] [ rspec-Bugs-13760 ] False Positives on eql?()
noreply at rubyforge.org
noreply at rubyforge.org
Fri Sep 7 15:15:14 EDT 2007
Bugs item #13760, was opened at 2007-09-07 19:15
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13760&group_id=797
Category: expectation module
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Geoffrey Wiseman (diathesis)
Assigned to: Nobody (None)
Summary: False Positives on eql?()
Initial Comment:
I accidentally typed:
ob.should eql?(something)
This passed incorrectly. It seems to be that I've essentially compared the 'something' value to the behavior object, and generated a false; by way of example, this also passes:
ob.should false
Both of these are presumably dangerous false positives, particularly the former that's one keystroke away from the valid approach, and in keeping with eql? elsewhere, so it's an easy mistake to make.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13760&group_id=797
More information about the rspec-devel
mailing list