debian-mirror-gitlab/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

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
FactoryBot.define do
factory :project_auto_devops do
project
2019-12-21 20:55:43 +05:30
enabled { true }
deploy_strategy { :continuous }
2018-11-08 19:23:39 +05:30
2018-12-05 23:21:45 +05:30
trait :continuous_deployment do
2019-12-21 20:55:43 +05:30
deploy_strategy { ProjectAutoDevops.deploy_strategies[:continuous] }
2018-12-05 23:21:45 +05:30
end
trait :manual_deployment do
2019-12-21 20:55:43 +05:30
deploy_strategy { ProjectAutoDevops.deploy_strategies[:manual] }
2018-12-05 23:21:45 +05:30
end
trait :timed_incremental_deployment do
2019-12-21 20:55:43 +05:30
deploy_strategy { ProjectAutoDevops.deploy_strategies[:timed_incremental] }
2018-11-08 19:23:39 +05:30
end
trait :disabled do
2019-12-21 20:55:43 +05:30
enabled { false }
2018-11-08 19:23:39 +05:30
end
2018-03-17 18:26:18 +05:30
end
end