lists.rb 213 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 :done_list, parent: :list do
    list_type :done
11 12
    label nil
    position nil
13
  end
14
end