We no longer raise a multipart error when metadata is empty

pull/9686/head
Oliver Günther 3 years ago
parent 2a8bb15d80
commit 087360bad0
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      spec/requests/api/v3/attachments/attachment_resource_shared_examples.rb

@ -255,7 +255,9 @@ shared_examples 'an APIv3 attachment resource', type: :request, content_type: :j
context 'metadata section is missing' do
let(:request_parts) { { file: file } }
it_behaves_like 'invalid request body', I18n.t('api_v3.errors.multipart_body_error')
it_behaves_like 'constraint violation' do
let(:message) { "File #{I18n.t('activerecord.errors.messages.blank')}" }
end
end
context 'file section is missing' do

Loading…
Cancel
Save