Fix search test that fails randomly
This commit is contained in:
parent
4266407709
commit
719b848e79
1 changed files with 2 additions and 2 deletions
|
@ -212,8 +212,8 @@ describe Backoffice::DossiersController, type: :controller do
|
||||||
expect(response).to have_http_status(200)
|
expect(response).to have_http_status(200)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns nothing' do
|
it 'does not return the dossier' do
|
||||||
expect(assigns(:dossiers).count).to eq(0)
|
expect(assigns(:dossiers).pluck(:id)).not_to include(dossier2_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue