fix flacky test
This commit is contained in:
parent
e5a6396174
commit
36f381a743
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