runners.rb 857 字节
Newer Older
D
Douwe Maan 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# == Schema Information
#
# Table name: runners
#
#  id           :integer          not null, primary key
#  token        :string(255)
#  created_at   :datetime
#  updated_at   :datetime
#  description  :string(255)
#  contacted_at :datetime
#  active       :boolean          default(TRUE), not null
#  is_shared    :boolean          default(FALSE)
#  name         :string(255)
#  version      :string(255)
#  revision     :string(255)
#  platform     :string(255)
#  architecture :string(255)
#

# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
23
  factory :ci_runner, class: Ci::Runner do
D
Douwe Maan 已提交
24 25 26 27 28 29
    sequence :description do |n|
      "My runner#{n}"
    end

    platform "darwin"

D
Dmitriy Zaporozhets 已提交
30
    factory :ci_shared_runner do
D
Douwe Maan 已提交
31 32 33
      is_shared true
    end

D
Dmitriy Zaporozhets 已提交
34
    factory :ci_specific_runner do
D
Douwe Maan 已提交
35 36 37 38
      is_shared false
    end
  end
end