Re: [rspec-users] should and != operator

2009-10-12 Thread Willy Mene
Yes, I do know about .should_not, and the example should be written that way. So the following [].should_not == [] 'string'.should_not == 'string' do fail. But I'm trying to understand why they pass with .should != Willy On Oct 12, 2009, at 12:08 PM, Lee Hambley wrote: Willy... Should

[rspec-users] should and != operator

2009-10-12 Thread Willy Mene
I've tried searching around for something describing how the #should method works with the != operator, but couldn't find anything conclusive. Can someone please explain while the following lines will pass if placed into an rspec example? it "should fail but passes" do [].should != []