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 spec/lib/api/v3/projects/project_representer_rendering_spec.rb

Tobias Dillmannadba983b0db4
diff --git a/spec/lib/api/v3/projects/project_representer_rendering_spec.rb b/spec/lib/api/v3/projects/project_representer_rendering_spec.rb
index 46dfad47aa7..35e825a48ed 100644
--- a/spec/lib/api/v3/projects/project_representer_rendering_spec.rb
+++ b/spec/lib/api/v3/projects/project_representer_rendering_spec.rb
@@ -88,9 +88,7 @@ RSpec.describe API::V3::Projects::ProjectRepresenter, "rendering" do
build_stubbed(:calculated_value_project_custom_field, :skip_validations, admin_only: false, formula: "21 + 3")
end
let(:calculated_custom_value) do
- CustomValue.new(custom_field: calculated_value_custom_field,
- value: "24.0",
- customized: nil)
+ build(:custom_value, custom_field: calculated_value_custom_field, value: "24.0")
end
let(:permissions) { %i[view_project add_work_packages view_members] }
let(:parent_project) do