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

26 lines
456 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
2016-07-27 17:46:03 -04:00
factory :list do
board
label
list_type { :label }
max_issue_count { 0 }
max_issue_weight { 0 }
limit_metric { nil }
2016-07-31 20:55:03 -04:00
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 }
2017-05-31 10:34:02 -04:00
end
factory :closed_list, parent: :list do
list_type { :closed }
label { nil }
position { nil }
end
2016-07-27 17:46:03 -04:00
end