mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-19 06:15:44 -04:00
updated test spec for improved elasticsearch syncing method
This commit is contained in:
@@ -329,7 +329,7 @@ describe Crop do
|
||||
before :each do
|
||||
@mushroom = FactoryGirl.create(:crop, :name => 'mushroom')
|
||||
@mushroom.__elasticsearch__.index_document
|
||||
sleep 1
|
||||
Crop.__elasticsearch__.refresh_index!
|
||||
end
|
||||
it "finds exact matches" do
|
||||
Crop.search('mushroom').should eq [@mushroom]
|
||||
|
||||
Reference in New Issue
Block a user