[rspec-users] should and != operator

Willy Mene wmene at stanford.edu
Mon Oct 12 15:21:07 EDT 2009


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 you not use .should_not ?
>
> -- Lee
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list