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
|
2017-03-23 13:08:39 +00:00
|
|
|
sequence(:description) { |n| "My runner#{n}" }
|
2015-08-26 01:42:46 +00:00
|
|
|
|
2016-02-17 21:20:09 +00:00
|
|
|
platform "darwin"
|
|
|
|
is_shared false
|
|
|
|
active true
|
2017-09-02 07:31:14 +00:00
|
|
|
access_level :not_protected
|
2015-08-26 01:42:46 +00:00
|
|
|
|
2016-12-27 12:15:14 +00:00
|
|
|
trait :online do
|
|
|
|
contacted_at Time.now
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
2017-01-20 11:25:53 +00:00
|
|
|
trait :specific do
|
|
|
|
is_shared false
|
|
|
|
end
|
|
|
|
|
2016-09-12 22:36:16 +00:00
|
|
|
trait :inactive do
|
|
|
|
active false
|
|
|
|
end
|
2017-08-21 08:24:44 +00:00
|
|
|
|
2017-08-29 06:56:03 +00:00
|
|
|
trait :ref_protected do
|
2017-08-31 09:28:29 +00:00
|
|
|
access_level :ref_protected
|
2017-08-21 08:24:44 +00:00
|
|
|
end
|
2015-08-26 01:42:46 +00:00
|
|
|
end
|
|
|
|
end
|