fix broken test in champ_serializer_spec

This commit is contained in:
clemkeirua 2020-07-15 17:03:48 +02:00 committed by Keirua (Rebase PR Action)
parent 31d48c2879
commit a465bad405

View file

@ -4,16 +4,8 @@ describe ChampSerializer do
let(:serializable_object) { champ }
context 'when type champ is piece justificative' do
include Rails.application.routes.url_helpers
let(:champ) { create(:champ_piece_justificative) }
before do
champ.piece_justificative_file.attach({ filename: __FILE__, io: File.open(__FILE__) })
champ.piece_justificative_file.blob.send(:enqueue_virus_scan)
end
after { champ.piece_justificative_file.purge }
it { expect(subject[:value]).to match('/rails/active_storage/disk/') }
end