[rspec-users] should !=

Mark Wilden mark at mwilden.com
Thu Oct 9 19:47:03 EDT 2008


I expected 'should !=' to act the same as 'should_not =='. That turned out
to be incorrect (by design?):

require 'spec'
require 'spec/rails'

describe "using 'should !='" do
  it "seems to treat != as the same as ==" do
    1.should != 1 # passes
    1.should != 2 # fails
  end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081009/0c86c7fc/attachment.html>


More information about the rspec-users mailing list