show files attachments instead of file infos in API for acq.media release

This commit is contained in:
Bilal
2020-08-26 13:49:33 +03:00
parent f611382e9e
commit 9a1f49f0dc
3 changed files with 15 additions and 5 deletions

View File

@@ -30,6 +30,16 @@ RSpec.describe Api::AcquiredMediaReleasesController, type: :controller do
expect(response).to be_successful
end
it 'contains files attachment data' do
tested_release = create(:acquired_media_release, name: 'ct1', project_id: project.id)
sign_in_to_api(current_user)
get :show, params: { id: tested_release.id }
expect(response.body).not_to match /file_infos/
expect(response.body).to match /files/
end
end
describe '#create' do