specs: fix shared/attachement/_update.html.haml spec

Avoid purging a non-saved file.
This commit is contained in:
Pierre de La Morinerie 2020-07-01 09:20:53 +00:00
parent 4aeb8c392f
commit 2f7fbc8474

View file

@ -16,7 +16,7 @@ describe 'shared/attachment/_update.html.haml', type: :view do
context 'when there is no attached file' do context 'when there is no attached file' do
before do before do
champ.piece_justificative_file.purge champ.piece_justificative_file = nil
end end
it 'renders a form field for uploading a file' do it 'renders a form field for uploading a file' do