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

Feature 50849, double in model_contract_spec.rb responds to new_record?

Richard "Virgo" Richtereab4e6938624
diff --git a/spec/lib/api/contracts/model_contract_spec.rb b/spec/lib/api/contracts/model_contract_spec.rb
index a34e0ad9cc4..7ae7613527a 100644
--- a/spec/lib/api/contracts/model_contract_spec.rb
+++ b/spec/lib/api/contracts/model_contract_spec.rb
@@ -37,6 +37,7 @@ RSpec.describe ModelContract do
not_allowed: nil,
changed: [],
valid?: true,
+ new_record?: false,
errors: ActiveModel::Errors.new(nil))
end