debian-mirror-gitlab/spec/factories/lists.rb

21 lines
316 B
Ruby
Raw Normal View History

2016-09-13 17:45:13 +05:30
FactoryGirl.define do
factory :list do
board
label
list_type :label
sequence(:position)
end
factory :backlog_list, parent: :list do
list_type :backlog
label nil
position nil
end
factory :done_list, parent: :list do
list_type :done
label nil
position nil
end
end