updated test spec for improved elasticsearch syncing method

This commit is contained in:
Shiho Takagi
2015-01-18 00:20:50 +11:00
parent 8221d5b441
commit 2a184bcb2e

View File

@@ -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]