On Jan 18, 2008 10:47 PM, David James <[EMAIL PROTECTED]> wrote:
> describe "should_not == vs. should !="
>   it do
>     5.should_not == 6
>   end # passes
>
>   it do
>     5.should != 6
>   end # fails
> end
>
> # I'm running the rspec 1.1.2 gem with the corresponding Textmate bundle
> # The second failure surprises me.
> # Is != not supported?

Sadly, yes. It is not supported. Because Ruby does not support it.

When you say 5 == 3, what that is really saying is 5.==(3), which is
how we're able to support 5.should == 3 (becomes 5.should.==(3)).

No such luck w/ !=.

C'est la vie.

Cheers,
David

> # I'd like to hear what you all think.
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to