On 8/2/07, Jay Levitt [EMAIL PROTECTED] wrote:
I was, for the first time, spec'ing a class that redefined ==. And my
spec was incorrect, so == was returning false.
The result was something like:
class C
def ==(other)
false
end
end
.. C.new.should == other...
expected
David Chelimsky wrote:
On 8/2/07, Jay Levitt [EMAIL PROTECTED] wrote:
I was, for the first time, spec'ing a class that redefined ==. And my
spec was incorrect, so == was returning false.
The result was something like:
class C
def ==(other)
false
end
end
.. C.new.should ==