diff --git a/spec/requests/api/v3/work_package_resource_spec.rb b/spec/requests/api/v3/work_package_resource_spec.rb index 1fc3637fc5..968e45b5ba 100644 --- a/spec/requests/api/v3/work_package_resource_spec.rb +++ b/spec/requests/api/v3/work_package_resource_spec.rb @@ -280,7 +280,28 @@ h4. things we like end end + context 'update with read-only attributes' do + let(:params) do + valid_params.merge({ startDate: DateTime.now.utc.iso8601 }) + end + + include_context 'patch request' + + it { expect(response.status).to eq(422) } + end + context 'valid update' do + let(:params) do + { + subject: 'Updated subject', + rawDescription: '