debian-mirror-gitlab/spec/factories/project_auto_devops.rb
2019-12-21 20:55:43 +05:30

25 lines
587 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :project_auto_devops do
project
enabled { true }
deploy_strategy { :continuous }
trait :continuous_deployment do
deploy_strategy { ProjectAutoDevops.deploy_strategies[:continuous] }
end
trait :manual_deployment do
deploy_strategy { ProjectAutoDevops.deploy_strategies[:manual] }
end
trait :timed_incremental_deployment do
deploy_strategy { ProjectAutoDevops.deploy_strategies[:timed_incremental] }
end
trait :disabled do
enabled { false }
end
end
end