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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
456 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
2016-07-27 21:46:03 +00:00
factory :list do
board
label
list_type { :label }
max_issue_count { 0 }
max_issue_weight { 0 }
limit_metric { nil }
2016-08-01 00:55:03 +00:00
sequence(:position)
2016-07-27 21:46:03 +00:00
end
2017-05-31 14:34:02 +00:00
factory :backlog_list, parent: :list do
list_type { :backlog }
label { nil }
position { nil }
2017-05-31 14:34:02 +00:00
end
factory :closed_list, parent: :list do
list_type { :closed }
label { nil }
position { nil }
end
2016-07-27 21:46:03 +00:00
end