diff options
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r-- | spec/factories/projects.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index 64321c9f319..45caa7a2b6a 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -215,6 +215,12 @@ FactoryBot.define do end end + trait :design_repo do + after(:create) do |project| + raise 'Failed to create design repository!' unless project.design_repository.create_if_not_exists + end + end + trait :remote_mirror do transient do remote_name { "remote_mirror_#{SecureRandom.hex}" } |