From rspec 3.0, be_true
is renamed to be_truthy
and be_false
to be_falsey
The behavior has not changed. So
(nil).should be_falsey
(false).should be_falsey
will pass, and
(anything other than nil or false).should be_truthy
will also pass
From the changelog 3.0.0.beta1 / 2013-11-07
Rename be_true and be_false to be_truthy and be_falsey. (Sam Phippen)