debian-mirror-gitlab/spec/factories/ci/runners.rb

35 lines
749 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
# == 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
factory :ci_runner, class: Ci::Runner do
sequence :description do |n|
"My runner#{n}"
end
2016-04-02 18:10:28 +05:30
platform "darwin"
is_shared false
active true
2015-09-25 12:07:36 +05:30
2016-04-02 18:10:28 +05:30
trait :shared do
2015-09-25 12:07:36 +05:30
is_shared true
end
end
end