FactoryGirl + RSpec + Rails 3 'undefined method <attribute>='

爱⌒轻易说出口 提交于 2019-12-02 18:09:14

How about running this?

rake db:test:load

[If you added a new attribute you'd need to migrate it to the test database.]

if you don't use schema.rb (e.g. you have set config.active_record.schema_format = :sql) you should run

rake db:test:prepare
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!