summaryrefslogtreecommitdiff
path: root/spec/factories/ci/events.rb
blob: 9638618a400aea1afb3fa9ba8f9f38eafca8ee9e (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
# == Schema Information
#
# Table name: events
#
#  id          :integer          not null, primary key
#  project_id  :integer
#  user_id     :integer
#  is_admin    :integer
#  description :text
#  created_at  :datetime
#  updated_at  :datetime
#

FactoryGirl.define do
  factory :ci_event, class: Ci::Event do
    sequence :description do |n|
      "updated project settings#{n}"
    end

    factory :ci_admin_event do
      is_admin true
    end
  end
end