gitlab-org--gitlab-foss/spec/factories/project_auto_devops.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
587 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :project_auto_devops do
project
enabled { true }
deploy_strategy { :continuous }
2018-06-07 08:56:48 -04:00
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] }
2018-06-07 08:56:48 -04:00
end
trait :disabled do
enabled { false }
end
end
end