gitlab-org--gitlab-foss/spec/factories/lists.rb

21 lines
320 B
Ruby
Raw Normal View History

2016-07-27 17:46:03 -04:00
FactoryGirl.define do
factory :list do
board
label
2016-07-31 20:55:03 -04:00
list_type :label
sequence(:position)
2016-07-27 17:46:03 -04:00
end
2017-05-31 10:34:02 -04:00
factory :backlog_list, parent: :list do
list_type :backlog
label nil
position nil
end
factory :closed_list, parent: :list do
list_type :closed
label nil
position nil
end
2016-07-27 17:46:03 -04:00
end