Load ee FactoryBot definitions in rails console
Summary
We currently only load EE factories in EE specs with
RSpec.configure do |config|
config.before(:suite) do
FactoryBot.definition_file_paths = [
Rails.root.join('ee', 'spec', 'factories')
]
FactoryBot.find_definitions
end
end
We could also make it available in the console by adding config.factory_bot.definition_file_paths = [Rails.root.join('ee', 'spec', 'factories'] in an EE only environment config.