Fix tests involving attachment urls

This commit is contained in:
Paul Chavard 2019-12-19 18:29:01 +01:00
parent 785a09b326
commit c6326bfa77
10 changed files with 14 additions and 13 deletions

View file

@ -14,7 +14,7 @@ describe ChampSerializer do
end
after { champ.piece_justificative_file.purge }
it { is_expected.to include(value: url_for(champ.piece_justificative_file)) }
it { expect(subject[:value]).to match('/rails/active_storage/disk/') }
end
context 'when type champ is not piece justificative' do