Skip to content
Snippets Groups Projects

Load EE factories in Rails console and verify them in specs

Merged Peter Leitzen requested to merge pl-factory-bot-reload into master
5 files
+ 5
17
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 5
0
@@ -455,6 +455,11 @@ class Application < Rails::Application
@@ -455,6 +455,11 @@ class Application < Rails::Application
g.factory_bot false
g.factory_bot false
end
end
 
if defined?(FactoryBotRails)
 
config.factory_bot.definition_file_paths << 'ee/spec/factories' if Gitlab.ee?
 
config.factory_bot.definition_file_paths << 'jh/spec/factories' if Gitlab.jh?
 
end
 
# sprocket-rails adds some precompile assets we actually do not need.
# sprocket-rails adds some precompile assets we actually do not need.
#
#
# It copies all _non_ js and CSS files from the app/assets/ older.
# It copies all _non_ js and CSS files from the app/assets/ older.
Loading