2018-03-17 18:26:18 +05:30
|
|
|
FactoryBot.define do
|
2015-09-25 12:07:36 +05:30
|
|
|
factory :ci_runner, class: Ci::Runner do
|
2017-08-17 22:00:37 +05:30
|
|
|
sequence(:description) { |n| "My runner#{n}" }
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
platform "darwin"
|
|
|
|
is_shared false
|
|
|
|
active true
|
2018-03-17 18:26:18 +05:30
|
|
|
access_level :not_protected
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
trait :online do
|
|
|
|
contacted_at Time.now
|
|
|
|
end
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
trait :shared do
|
2015-09-25 12:07:36 +05:30
|
|
|
is_shared true
|
|
|
|
end
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
trait :specific do
|
|
|
|
is_shared false
|
|
|
|
end
|
|
|
|
|
2016-09-29 09:46:39 +05:30
|
|
|
trait :inactive do
|
|
|
|
active false
|
|
|
|
end
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
trait :ref_protected do
|
|
|
|
access_level :ref_protected
|
|
|
|
end
|
2015-09-25 12:07:36 +05:30
|
|
|
end
|
|
|
|
end
|