BigW Consortium Gitlab

lists.rb 319 Bytes
Newer Older
1
FactoryBot.define do
2 3 4
  factory :list do
    board
    label
5 6
    list_type :label
    sequence(:position)
7
  end
8

Phil Hughes committed
9 10 11 12 13 14
  factory :backlog_list, parent: :list do
    list_type :backlog
    label nil
    position nil
  end

15 16
  factory :closed_list, parent: :list do
    list_type :closed
17 18
    label nil
    position nil
19
  end
20
end