Plurals spec only when we have elastic search

This commit is contained in:
Brenda Wallace
2019-04-13 10:17:21 +12:00
parent 174f54cb75
commit e34a2d609b

View File

@@ -50,9 +50,11 @@ RSpec.describe CropSearchService, type: :service do
it { expect(search('coffee')).to eq [] }
end
describe 'finds plurals' do
it { expect(search('mushrooms')).to eq ['mushroom'] }
it { expect(search('tomatoes')).to eq ['tomato'] }
if ENV['GROWSTUFF_ELASTICSEARCH'] == 'true'
describe 'finds plurals' do
it { expect(search('mushrooms')).to eq ['mushroom'] }
it { expect(search('tomatoes')).to eq ['tomato'] }
end
end
describe 'searches case insensitively' do