You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Things started breaking for me with 'Factory not registered' errors. I tracked it down to adding the 'factory_girl_rails' gem to my Gemfile. Bundler autorequires it, which was causing FactoryGirl.definition_file_paths to already be resolved to spec/internal for it's factories.
I worked around it by disabling autorequiring in my Gemfile:
gem'factory_girl_rails',:require=>false
And then manually requiring it in my spec_helper.rb after Combustion.initialize!:
I think a README entry is probably best - as the load order is important (I would like Combustion to auto-load more things, but then that makes life hard for anyone doing something slightly different), and we can't presume how other gems behave with regards to loading their dependencies and getting set up.
Things started breaking for me with 'Factory not registered' errors. I tracked it down to adding the 'factory_girl_rails' gem to my Gemfile. Bundler autorequires it, which was causing
FactoryGirl.definition_file_paths
to already be resolved to spec/internal for it's factories.I worked around it by disabling autorequiring in my Gemfile:
And then manually requiring it in my
spec_helper.rb
afterCombustion.initialize!
:However, it might be nice if Combustion can somehow fix this.
The text was updated successfully, but these errors were encountered: