BigW Consortium Gitlab

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

7 8 9
    platform  "darwin"
    is_shared false
    active    true
10

11 12 13 14
    trait :online do
      contacted_at Time.now
    end

15
    trait :shared do
16 17
      is_shared true
    end
18

19 20 21 22
    trait :specific do
      is_shared false
    end

23 24 25
    trait :inactive do
      active false
    end
26 27
  end
end