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

remove not needed save! on work_package and project

as-op691b36b4cfd5
diff --git a/spec/models/work_package/pdf_export/common/macro_spec.rb b/spec/models/work_package/pdf_export/common/macro_spec.rb
index 12d7773c7d0..6f0adae19a1 100644
--- a/spec/models/work_package/pdf_export/common/macro_spec.rb
+++ b/spec/models/work_package/pdf_export/common/macro_spec.rb
@@ -50,8 +50,7 @@ RSpec.describe WorkPackage::PDFExport::Common::Macro do
status_code: "on_track",
work_package_custom_fields: [custom_field],
project_custom_fields: [project_custom_field],
- custom_field_values: { project_custom_field.id => "Project custom value 1" },
- &:save!
+ custom_field_values: { project_custom_field.id => "Project custom value 1" }
)
end
shared_let(:work_package) do
@@ -60,8 +59,7 @@ RSpec.describe WorkPackage::PDFExport::Common::Macro do
subject: "Work package 1",
type: type_task,
status: create(:status, name: "In Progress"), project: project,
- custom_field_values: { custom_field.id => "Custom value 1" },
- &:save!
+ custom_field_values: { custom_field.id => "Custom value 1" }
)
end
shared_let(:formatter) { Class.new { extend WorkPackage::PDFExport::Common::Macro } }