mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-08-02 19:05:52 -04:00
Plurals spec only when we have elastic search
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user