specs: fix an Rspec warning
This commit is contained in:
parent
bc68570244
commit
245ef2befd
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ describe User, type: :model do
|
|||
context 'with a dossier in instruction' do
|
||||
let!(:dossier_en_instruction) { create(:dossier, :en_instruction, user: user) }
|
||||
it 'raises' do
|
||||
expect { user.delete_and_keep_track_dossiers(administration) }.to raise_error
|
||||
expect { user.delete_and_keep_track_dossiers(administration) }.to raise_error(RuntimeError)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue