[#2179] Tolerate spurious spaces around search terms
This commit is contained in:
parent
1134877d59
commit
cef0eafb1a
2 changed files with 10 additions and 3 deletions
|
@ -73,6 +73,12 @@ describe DossierSearchService do
|
|||
it { expect(subject.size).to eq(2) }
|
||||
end
|
||||
|
||||
describe 'search terms surrounded with spurious spaces' do
|
||||
let(:terms) { ' OCTO ' }
|
||||
|
||||
it { expect(subject.size).to eq(2) }
|
||||
end
|
||||
|
||||
describe 'search on multiple fields' do
|
||||
let(:terms) { 'octo plop' }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue