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

Update the specs to use the context.

Dombi Attila6f4fb6fc1696
diff --git a/spec/models/projects/customizable_spec.rb b/spec/models/projects/customizable_spec.rb
index c6886e0622e..3c11edde2fe 100644
--- a/spec/models/projects/customizable_spec.rb
+++ b/spec/models/projects/customizable_spec.rb
@@ -312,7 +312,7 @@ RSpec.describe Project, "customizable" do
bool_custom_field.id => true
}
- project.save!
+ project.save!(context: :saving_custom_fields)
end
it_behaves_like "implicitly enabled and saved custom values"
@@ -426,7 +426,7 @@ RSpec.describe Project, "customizable" do
before do
project.send(:"custom_field_#{text_custom_field.id}=", "foo")
project.send(:"custom_field_#{bool_custom_field.id}=", true)
- project.save!
+ project.save!(context: :saving_custom_fields)
end
it_behaves_like "implicitly enabled and saved custom values"