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

avoid setting spilling over to next spec

ulferts295fc5216626
diff --git a/spec/features/projects/projects_index_spec.rb b/spec/features/projects/projects_index_spec.rb
index 2d45fdec73a..36e8c39e4fb 100644
--- a/spec/features/projects/projects_index_spec.rb
+++ b/spec/features/projects/projects_index_spec.rb
@@ -980,7 +980,9 @@ describe 'Projects index page',
project.save!
allow_enterprise_edition
- Setting.enabled_projects_columns << "cf_#{list_custom_field.id}"
+ allow(Setting)
+ .to receive(:enabled_projects_columns) #<< "cf_#{list_custom_field.id}"
+ .and_return ["cf_#{list_custom_field.id}"]
login_as(admin)
visit projects_path