[rspec-users] should and != operator
cwdinfo at gmail.com
Mon Oct 12 15:32:08 EDT 2009
Afaik, != is one of the few operators that is intrinsic. I believe
there is no !=() method defined in Ruby.
Hunted and pecked from my iPhone
On Oct 12, 2009, at 12:21 PM, Willy Mene <wmene at stanford.edu> wrote:
> 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 !=
> On Oct 12, 2009, at 12:08 PM, Lee Hambley wrote:
>> Should you not use .should_not ?
>> -- Lee
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users