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

Fix rubocop warning

Christophe Bliardd76609dd6ae6
diff --git a/spec/models/custom_field_spec.rb b/spec/models/custom_field_spec.rb
index f4a95578737..05de4a78890 100644
--- a/spec/models/custom_field_spec.rb
+++ b/spec/models/custom_field_spec.rb
@@ -248,7 +248,7 @@ describe CustomField do
context 'for something that responds to project' do
it 'is a list of name, id pairs' do
- object = OpenStruct.new(project:)
+ object = OpenStruct.new(project:) # rubocop:disable Style/OpenStructUse
expect(field.possible_values_options(object))
.to match_array [[user1.name, user1.id.to_s],