Undefined methods for FactoryGirl transient variables

£可爱£侵袭症+ 提交于 2019-12-01 02:23:01

So the solution was to change

transient do
   links_count 5
end

to

ignore do
  links_count 5
end

Reason: Docs on master are prepared for FactoryGirl v.5.0. transient will wok on 5.0 release.

More reading: http://github.com/thoughtbot/factory_girl/issues/658

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