RSpec's be_false
behaves unexpectedly:
nil.should be_false
# passes, as the expectation returns true
If you want to check for false
, you need to do it like this:
nil.should == false
# fails as expected
Wat? Show archive.org snapshot
See also
Posted by Arne Hartherz to makandra dev (2012-06-29 10:19)