BigW Consortium Gitlab

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

  factory :backlog_list, parent: :list do
    list_type :backlog
11 12
    label nil
    position nil
13 14 15 16
  end

  factory :done_list, parent: :list do
    list_type :done
17 18
    label nil
    position nil
19
  end
20
end