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 test flakiness

Christophe Bliardf6f8c833e5ef
diff --git a/spec/models/projects/exporter/exportable_project_context.rb b/spec/models/projects/exporter/exportable_project_context.rb
index 40d994174da..6f09cb8bd6f 100644
--- a/spec/models/projects/exporter/exportable_project_context.rb
+++ b/spec/models/projects/exporter/exportable_project_context.rb
@@ -27,14 +27,14 @@
#++
shared_context 'with a project with an arrangement of custom fields' do
- shared_let(:version_cf) { create(:version_project_custom_field) }
- shared_let(:bool_cf) { create(:bool_project_custom_field) }
- shared_let(:user_cf) { create(:user_project_custom_field) }
- shared_let(:int_cf) { create(:int_project_custom_field) }
- shared_let(:float_cf) { create(:float_project_custom_field) }
- shared_let(:text_cf) { create(:text_project_custom_field) }
- shared_let(:string_cf) { create(:string_project_custom_field) }
- shared_let(:date_cf) { create(:date_project_custom_field) }
+ shared_let(:version_cf) { create(:version_project_custom_field, position: 1) }
+ shared_let(:bool_cf) { create(:bool_project_custom_field, position: 2) }
+ shared_let(:user_cf) { create(:user_project_custom_field, position: 3) }
+ shared_let(:int_cf) { create(:int_project_custom_field, position: 4) }
+ shared_let(:float_cf) { create(:float_project_custom_field, position: 5) }
+ shared_let(:text_cf) { create(:text_project_custom_field, position: 6) }
+ shared_let(:string_cf) { create(:string_project_custom_field, position: 7) }
+ shared_let(:date_cf) { create(:date_project_custom_field, position: 8) }
shared_let(:system_version) { create(:version, sharing: 'system') }