BigW Consortium Gitlab

runners.rb 403 Bytes
Newer Older
1
FactoryGirl.define do
2
  factory :ci_runner, class: Ci::Runner do
3
    sequence(:description) { |n| "My runner#{n}" }
4

5 6 7
    platform  "darwin"
    is_shared false
    active    true
8

9 10 11 12
    trait :online do
      contacted_at Time.now
    end

13
    trait :shared do
14 15
      is_shared true
    end
16

17 18 19 20
    trait :specific do
      is_shared false
    end

21 22 23
    trait :inactive do
      active false
    end
24 25
  end
end