Fix testsuite failure introduced in last release

This commit is contained in:
Claire 2023-07-21 14:14:10 +02:00
parent 0bd52de492
commit 668cd00e13

View file

@ -12,7 +12,7 @@ RSpec.describe 'Media API', paperclip_processing: true do
it 'returns http success' do
post '/api/v2/media', headers: headers, params: { file: fixture_file_upload('attachment-jpg.123456_abcd', 'image/jpeg') }
expect(File.exist?(user.account.media_attachments.first.file.path(:small))).to be true
expect(response).to have_http_status(200)
expect(response).to have_http_status(202)
end
end
end