Re: [rspec-users] got/expects causes mental layering violation

2007-08-02 Thread David Chelimsky
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

Re: [rspec-users] got/expects causes mental layering violation

2007-08-02 Thread Jay Levitt
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 ==