2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-07-27 17:46:03 -04:00
|
|
|
factory :list do
|
|
|
|
board
|
|
|
|
label
|
2019-10-01 20:06:26 -04:00
|
|
|
list_type { :label }
|
2016-07-31 20:55:03 -04:00
|
|
|
sequence(:position)
|
2016-07-27 17:46:03 -04:00
|
|
|
end
|
2016-07-28 00:54:13 -04:00
|
|
|
|
2017-05-31 10:34:02 -04:00
|
|
|
factory :backlog_list, parent: :list do
|
2019-10-01 20:06:26 -04:00
|
|
|
list_type { :backlog }
|
|
|
|
label { nil }
|
|
|
|
position { nil }
|
2017-05-31 10:34:02 -04:00
|
|
|
end
|
|
|
|
|
2017-03-24 08:40:35 -04:00
|
|
|
factory :closed_list, parent: :list do
|
2019-10-01 20:06:26 -04:00
|
|
|
list_type { :closed }
|
|
|
|
label { nil }
|
|
|
|
position { nil }
|
2016-07-28 00:54:13 -04:00
|
|
|
end
|
2016-07-27 17:46:03 -04:00
|
|
|
end
|