factory bot - Undefined method `FactoryGirl' -- upgrading from 2.0.2 to 3.4.2 -
i'm in process of upgrading factory_girl (2.0.2 3.4.2) , factory_girl_rails (1.1.0 -> 3.4.0) , i'm having issues rspec tests seeing factory girl.
i think i've altered factories deal new syntax, , have removed require statements bringing in multiple copies of same files. server starts up, know factories.rb file correctly getting parsed.
now when run rspec tests, i'm getting error:
nomethoderror: undefined method `factorygirl' #
it 'can created' course = factorygirl(:course) …. end
with factory girl 3.4.2, need explicitly use create method.
course = factorygirl.create(:course)
Comments
Post a Comment