mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-21 22:44:23 -04:00
updated test spec for improved elasticsearch syncing method
This commit is contained in:
1 parent
8221d5b441
commit
2a184bcb2e
1 file changed
+1
-1
@@ -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