gitlab-org--gitlab-foss/spec/factories/ci/runners.rb

31 lines
506 B
Ruby
Raw Normal View History

2015-08-25 21:42:46 -04:00
FactoryGirl.define do
factory :ci_runner, class: Ci::Runner do
sequence(:description) { |n| "My runner#{n}" }
2015-08-25 21:42:46 -04:00
platform "darwin"
is_shared false
active true
2017-09-02 03:31:14 -04:00
access_level :not_protected
2015-08-25 21:42:46 -04:00
trait :online do
contacted_at Time.now
end
trait :shared do
2015-08-25 21:42:46 -04:00
is_shared true
end
trait :specific do
is_shared false
end
trait :inactive do
active false
end
trait :ref_protected do
access_level :ref_protected
end
2015-08-25 21:42:46 -04:00
end
end