Sorry for the spam, but I was wrong: the *should_not have_something*
also passed when the method returned nil.
On Sep 18, 2009, at 10:42 AM, Yi Wen wrote:
Hi all,
I noticed that if I have a method named has_somthing? and I do:
object.should_not have_somthing and it failed (as expected) when the
method returns nil.
But if the method is something? and I do:
object.should_not be_something, and it succeeded (not what I
expected) when something? returns nil
Is this intended behavior or something I did was wrong? Thanks
Yi
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users