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

lists.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e3f06c682cdc75ef6465e55614ee71279ec0340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FactoryGirl.define do
  factory :list do
    board
    label
    list_type :label
    sequence(:position)
  end

  factory :backlog_list, parent: :list do
    list_type :backlog
    label nil
    position nil
  end

  factory :done_list, parent: :list do
    list_type :done
    label nil
    position nil
  end
end