lists.rb 301 Bytes
Newer Older
1 2 3 4 5 6
FactoryGirl.define do
  factory :list do
    board
    label
    sequence(:position)
  end
7 8 9 10 11 12 13 14 15 16 17 18

  factory :backlog_list, parent: :list do
    list_type :backlog
  end

  factory :label_list, parent: :list do
    list_type :label
  end

  factory :done_list, parent: :list do
    list_type :done
  end
19
end