阅读背景:

验证ActiveRecord时,我有效吗? => false但在errors.count中没有错误。怎么会?

来源:互联网 

When creating an ActiveRecord in rspec, I use fixtures for valid records. But when using the fxitures in tests, they seem to fail validation. In the following example, the employee seems to be perfectly valid, and yet the associated validation in the spec says they are invalid.When creating an ActiveRecord in rspec, I use f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: