fix flacky test

This commit is contained in:
clemkeirua 2020-05-07 10:19:57 +02:00
parent e5a6396174
commit 36f381a743

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