mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Update spec/contracts/model_contract_spec.rb
Co-authored-by: Dombi Attila <83396+dombesz@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user