Merge pull request #5121 from betagouv/5089-fix-collision
#5089 - Fix test aléatoire pour DossierSearchService
This commit is contained in:
commit
f4677a0907
1 changed files with 2 additions and 2 deletions
|
@ -133,13 +133,13 @@ describe DossierSearchService do
|
|||
context 'when the user owns the dossier' do
|
||||
let(:terms) { dossier_0.id.to_s }
|
||||
|
||||
it { expect(subject.size).to eq(1) }
|
||||
it { expect(subject.map(&:id)).to include(dossier_0.id) }
|
||||
end
|
||||
|
||||
context 'when the user does not own the dossier' do
|
||||
let(:terms) { dossier_0b.id.to_s }
|
||||
|
||||
it { expect(subject.size).to eq(0) }
|
||||
it { expect(subject.map(&:id)).not_to include(dossier_0b.id) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue