Commit 65f68427 authored by Rémy Coutable's avatar Rémy Coutable

Detect EE-specific facrories

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 182653a0
require_relative '../support/test_env'
FactoryBot.define do
factory :remote_mirror, class: 'RemoteMirror' do
association :project, :repository
......
RSpec.configure do |config|
config.before(:suite) do
FactoryBot.definition_file_paths = [
Rails.root.join('ee', 'spec', 'factories')
]
FactoryBot.find_definitions
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment