Merge pull request #5121 from betagouv/5089-fix-collision

#5089 - Fix test aléatoire pour DossierSearchService
This commit is contained in:
Paul Chavard 2020-05-07 11:31:21 +02:00 committed by GitHub
commit f4677a0907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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