【发布时间】:2014-03-10 14:33:26
【问题描述】:
将 rspec-rails 从版本 2.14.0 更新到 3.0.0.beta2 后,所有使用 be_true 或 be_false 的测试都会失败。
Failure/Error: user.new_record?.should be_true
NoMethodError:
undefined method `true?' for true:TrueClass
有什么建议吗? Google 会返回任何关于此的内容!
【问题讨论】:
标签: ruby-on-rails rspec rspec-rails