2015-08-25 21:42:46 -04:00
|
|
|
FactoryGirl.define do
|
2015-09-09 07:37:50 -04:00
|
|
|
factory :ci_runner, class: Ci::Runner do
|
2017-03-23 09:08:39 -04:00
|
|
|
sequence(:description) { |n| "My runner#{n}" }
|
2015-08-25 21:42:46 -04:00
|
|
|
|
2016-02-17 16:20:09 -05: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
|
|
|
|
2016-12-27 07:15:14 -05:00
|
|
|
trait :online do
|
|
|
|
contacted_at Time.now
|
|
|
|
end
|
|
|
|
|
2016-02-17 16:20:09 -05:00
|
|
|
trait :shared do
|
2015-08-25 21:42:46 -04:00
|
|
|
is_shared true
|
|
|
|
end
|
2016-09-12 18:36:16 -04:00
|
|
|
|
2017-01-20 06:25:53 -05:00
|
|
|
trait :specific do
|
|
|
|
is_shared false
|
|
|
|
end
|
|
|
|
|
2016-09-12 18:36:16 -04:00
|
|
|
trait :inactive do
|
|
|
|
active false
|
|
|
|
end
|
2017-08-21 04:24:44 -04:00
|
|
|
|
2017-08-29 02:56:03 -04:00
|
|
|
trait :ref_protected do
|
2017-08-31 05:28:29 -04:00
|
|
|
access_level :ref_protected
|
2017-08-21 04:24:44 -04:00
|
|
|
end
|
2015-08-25 21:42:46 -04:00
|
|
|
end
|
|
|
|
end
|