debian-mirror-gitlab/spec/factories/lists.rb
2020-01-01 13:55:28 +05:30

24 lines
431 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :list do
board
label
list_type { :label }
max_issue_count { 0 }
max_issue_weight { 0 }
sequence(:position)
end
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
end