Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

custom_field factory multi_value trait

Ivan Kuchin6439653eafee
diff --git a/spec/factories/custom_field_factory.rb b/spec/factories/custom_field_factory.rb
index 4b3d266f1db..ace2dada955 100644
--- a/spec/factories/custom_field_factory.rb
+++ b/spec/factories/custom_field_factory.rb
@@ -57,6 +57,10 @@ FactoryBot.define do
RequestStore.clear!
end
+ trait :multi_value do
+ multi_value { true }
+ end
+
trait :boolean do
_format_name { "boolean" }
field_format { "bool" }
@@ -136,7 +140,7 @@ FactoryBot.define do
trait :multi_list do
list
- multi_value { true }
+ multi_value
end
trait :version do
@@ -145,7 +149,7 @@ FactoryBot.define do
trait :multi_version do
field_format { "version" }
- multi_value { true }
+ multi_value
end
trait :user do
@@ -154,7 +158,7 @@ FactoryBot.define do
trait :multi_user do
field_format { "user" }
- multi_value { true }
+ multi_value
end
trait :link do