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 order-dependent spec

Christophe Bliardefa1389141da
diff --git a/spec/migrations/rename_visible_to_admin_only_in_custom_fields_spec.rb b/spec/migrations/rename_visible_to_admin_only_in_custom_fields_spec.rb
index dc9d9c5266f..fc5038221ea 100644
--- a/spec/migrations/rename_visible_to_admin_only_in_custom_fields_spec.rb
+++ b/spec/migrations/rename_visible_to_admin_only_in_custom_fields_spec.rb
@@ -39,6 +39,7 @@ RSpec.describe RenameVisibleToAdminOnlyInCustomFields, type: :model do
# Roll back the migration so we can migrate up
before do
ActiveRecord::Migration.suppress_messages { described_class.new.migrate(:down) }
+ CustomField.reset_column_information
end
# Silencing migration logs, since we are not interested in that during testing