fix broken test in champ_serializer_spec
This commit is contained in:
parent
31d48c2879
commit
a465bad405
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue