Update spec/contracts/model_contract_spec.rb

Co-authored-by: Dombi Attila <83396+dombesz@users.noreply.github.com>
This commit is contained in:
Klaus Zanders
2026-05-07 09:46:08 +02:00
committed by GitHub
parent 551587917e
commit be88aa64e5
+8 -5
View File
@@ -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