[rspec-users] Expecting nil or false

Fernando Perez lists at ruby-forum.com
Tue Mar 31 13:11:00 EDT 2009


>> Do I have to rewrite my return values to always return true or false?
> No, but you may have to use different matchers. What are you using?

I use: should be_false

Rspec complains it receives nil when it is expecting false.
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list