specs: fix an Rspec warning

This commit is contained in:
Pierre de La Morinerie 2020-03-25 16:56:54 +01:00
parent bc68570244
commit 245ef2befd

View file

@ -251,7 +251,7 @@ describe User, type: :model do
context 'with a dossier in instruction' do context 'with a dossier in instruction' do
let!(:dossier_en_instruction) { create(:dossier, :en_instruction, user: user) } let!(:dossier_en_instruction) { create(:dossier, :en_instruction, user: user) }
it 'raises' do 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
end end