Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_teams.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a9ae8e885c3cf924219bef7ba49d893884d52cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# == Schema Information
#
# Table name: user_teams
#
#  id         :integer          not null, primary key
#  name       :string(255)
#  path       :string(255)
#  owner_id   :integer
#  created_at :datetime         not null
#  updated_at :datetime         not null
#

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

FactoryGirl.define do
  factory :user_team do
    sequence(:name) { |n| "team#{n}" }
    path { name.downcase.gsub(/\s/, '_') }
    owner
  end
end