2015-08-25 21:42:46 -04:00
|
|
|
# == 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)
|
|
|
|
#
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
2015-09-09 07:37:50 -04:00
|
|
|
factory :ci_runner, class: Ci::Runner do
|
2015-08-25 21:42:46 -04:00
|
|
|
sequence :description do |n|
|
|
|
|
"My runner#{n}"
|
|
|
|
end
|
|
|
|
|
2016-02-17 16:20:09 -05:00
|
|
|
platform "darwin"
|
|
|
|
is_shared false
|
|
|
|
active true
|
2015-08-25 21:42:46 -04:00
|
|
|
|
2016-02-17 16:20:09 -05:00
|
|
|
trait :shared do
|
2015-08-25 21:42:46 -04:00
|
|
|
is_shared true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|