2009-10-12 22:18, Tero Tilus:
> Expression x!=y is instead just syntactic sugar for !(x==y).

To illustrate how this affects #should, think of

  'some string'.should != 'some string'

Now Ruby internals kick in and desugar this (before anything is even
executed) to

  !('some string'.should == 'some string')

Which obviously does not fail.

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to