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

20 lines
303 B
Ruby
Raw Normal View History

2015-08-25 21:42:46 -04:00
FactoryGirl.define do
factory :ci_runner, class: Ci::Runner do
2015-08-25 21:42:46 -04:00
sequence :description do |n|
"My runner#{n}"
end
platform "darwin"
is_shared false
active true
2015-08-25 21:42:46 -04:00
trait :shared do
2015-08-25 21:42:46 -04:00
is_shared true
end
trait :inactive do
active false
end
2015-08-25 21:42:46 -04:00
end
end