debian-mirror-gitlab/spec/factories/project_auto_devops.rb

24 lines
721 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
FactoryBot.define do
factory :project_auto_devops do
project
enabled true
2018-11-08 19:23:39 +05:30
deploy_strategy :continuous
2018-12-05 23:21:45 +05:30
trait :continuous_deployment do
deploy_strategy ProjectAutoDevops.deploy_strategies[:continuous] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
end
trait :manual_deployment do
deploy_strategy ProjectAutoDevops.deploy_strategies[:manual] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
end
trait :timed_incremental_deployment do
deploy_strategy ProjectAutoDevops.deploy_strategies[:timed_incremental] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
2018-11-08 19:23:39 +05:30
end
trait :disabled do
enabled false
end
2018-03-17 18:26:18 +05:30
end
end