2015-08-26 01:42:46 +00:00
|
|
|
FactoryGirl.define do
|
2015-09-09 11:37:50 +00:00
|
|
|
factory :ci_runner, class: Ci::Runner do
|
2015-08-26 01:42:46 +00:00
|
|
|
sequence :description do |n|
|
|
|
|
"My runner#{n}"
|
|
|
|
end
|
|
|
|
|
2016-02-17 21:20:09 +00:00
|
|
|
platform "darwin"
|
|
|
|
is_shared false
|
|
|
|
active true
|
2015-08-26 01:42:46 +00:00
|
|
|
|
2016-02-17 21:20:09 +00:00
|
|
|
trait :shared do
|
2015-08-26 01:42:46 +00:00
|
|
|
is_shared true
|
|
|
|
end
|
2016-09-12 22:36:16 +00:00
|
|
|
|
|
|
|
trait :inactive do
|
|
|
|
active false
|
|
|
|
end
|
2015-08-26 01:42:46 +00:00
|
|
|
end
|
|
|
|
end
|