From be88aa64e5f7c7664cb79bb312ad386c2d32ee01 Mon Sep 17 00:00:00 2001 From: Klaus Zanders Date: Thu, 7 May 2026 09:46:08 +0200 Subject: [PATCH] Update spec/contracts/model_contract_spec.rb Co-authored-by: Dombi Attila <83396+dombesz@users.noreply.github.com> --- spec/contracts/model_contract_spec.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/spec/contracts/model_contract_spec.rb b/spec/contracts/model_contract_spec.rb index a2f8be29ded..15863c64854 100644 --- a/spec/contracts/model_contract_spec.rb +++ b/spec/contracts/model_contract_spec.rb @@ -236,12 +236,15 @@ RSpec.describe ModelContract do def validate_model? = false end + + expect(multi_class.writable_attributes) + .to contain_exactly("settings", + "settings_id", + "sprint_sharing", + "sprint_sharing_id", + "deactivate_work_package_attachments", + "deactivate_work_package_attachments_id") - project.sprint_sharing = "share_subprojects" - project.deactivate_work_package_attachments = true - contract = multi_class.new(project, user) - - expect(contract).to be_valid end context "with inheritance" do