我把我的rspec-rails
升级到了3.0.1,现在我在所有的测试中都看到了这个错误
Failure/Error: Sidekiq::Status::complete?(json.jid).should be_true
expected true to respond to `true?`
我找不到解决方案,也找不到我缺少的东西.
我把我的rspec-rails
升级到了3.0.1,现在我在所有的测试中都看到了这个错误
Failure/Error: Sidekiq::Status::complete?(json.jid).should be_true
expected true to respond to `true?`
我找不到解决方案,也找不到我缺少的东西.
从rspec 3.0开始,be_true
更名为be_truthy
,be_false
更名为be_falsey
这种行为没有改变.所以
(nil).should be_falsey
(false).should be_falsey
会过go 的
(anything other than nil or false).should be_truthy
也会通过
从changelog 3.0.0.beta1 / 2013-11-07
改名为be_true and be_false to be_truthy and be_false.(山姆·菲彭)