lists.rb 363 Bytes
Newer Older
1 2 3 4 5
FactoryGirl.define do
  factory :list do
    board
    label
  end
6 7 8

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

  factory :label_list, parent: :list do
    list_type :label
15
    sequence(:position)
16 17 18 19
  end

  factory :done_list, parent: :list do
    list_type :done
20 21
    label nil
    position nil
22
  end
23
end