specs: fix shared/attachement/_update.html.haml
spec
Avoid purging a non-saved file.
This commit is contained in:
parent
4aeb8c392f
commit
2f7fbc8474
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ describe 'shared/attachment/_update.html.haml', type: :view do
|
|||
|
||||
context 'when there is no attached file' do
|
||||
before do
|
||||
champ.piece_justificative_file.purge
|
||||
champ.piece_justificative_file = nil
|
||||
end
|
||||
|
||||
it 'renders a form field for uploading a file' do
|
||||
|
|
Loading…
Reference in a new issue