Fix test according to remote_storage feature activation

This commit is contained in:
Guillaume Lazzara 2016-05-20 16:54:32 +02:00
parent 1b6b3127c6
commit 9e3b1d73de

View file

@ -138,7 +138,11 @@ describe Users::DescriptionController, type: :controller, vcr: { cassette_name:
subject { dossier.cerfa.first }
it 'content' do
expect(subject['content']).to eq('cerfa-3dbb3535-5388-4a37-bc2d-778327b9f999.pdf')
if Features.remote_storage
expect(subject['content']).to eq('cerfa-3dbb3535-5388-4a37-bc2d-778327b9f999.pdf')
else
expect(subject['content']).to eq('cerfa.pdf')
end
end
it 'dossier_id' do