Fix tests involving attachment urls
This commit is contained in:
parent
785a09b326
commit
c6326bfa77
10 changed files with 14 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue