summaryrefslogtreecommitdiff
path: root/spec/factories/runners.rb
blob: 72d3e3d7423291f0d56bbf89044c716b9686bf86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# == 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)
#

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

FactoryGirl.define do
  factory :runner do
    sequence :description do |n|
      "My runner#{n}"
    end

    platform "darwin"

    factory :shared_runner do
      is_shared true
    end

    factory :specific_runner do
      is_shared false
    end
  end
end