[rspec-users] Expecting nil or false

David Chelimsky dchelimsky at gmail.com
Tue Mar 31 13:43:19 EDT 2009


On Tue, Mar 31, 2009 at 12:11 PM, Fernando Perez <lists at ruby-forum.com> wrote:
>
>>> 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.

As would be expected.

What is the full expression? i.e. what is it that should be false (or nil)?

> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list