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