search: exclude more special characters

This commit is contained in:
Pierre de La Morinerie 2019-01-22 17:16:49 +01:00
parent b07bdebc69
commit 437f73b4ce
2 changed files with 7 additions and 1 deletions

View file

@ -90,5 +90,11 @@ describe DossierSearchService do
it { expect(subject.size).to eq(1) }
end
describe 'search with characters disallowed by the tsquery parser' do
let(:terms) { "'?\\:&!(OCTO) <plop>" }
it { expect(subject.size).to eq(1) }
end
end
end