Commit b56c3f979fe19a0d3e47ceb55a745a7b517135c8

Authored by Andrew Kane
2 parents b07e444a 7290906f

Merge branch 'master' into activejob

Showing 2 changed files with 4 additions and 1 deletions   Show diff stats
test/index_test.rb
@@ -53,6 +53,8 @@ class TestIndex < Minitest::Test @@ -53,6 +53,8 @@ class TestIndex < Minitest::Test
53 store_names ["Product A", "Product B"] 53 store_names ["Product A", "Product B"]
54 Product.where(name: "Product A").delete_all 54 Product.where(name: "Product A").delete_all
55 assert_search "product", ["Product B"] 55 assert_search "product", ["Product B"]
  56 + ensure
  57 + Product.reindex
56 end 58 end
57 59
58 def test_bad_mapping 60 def test_bad_mapping
test/suggest_test.rb
@@ -23,7 +23,8 @@ class TestSuggest < Minitest::Test @@ -23,7 +23,8 @@ class TestSuggest < Minitest::Test
23 23
24 def test_multiple_fields 24 def test_multiple_fields
25 store [ 25 store [
26 - {name: "Shark", color: "Sharp"} 26 + {name: "Shark", color: "Sharp"},
  27 + {name: "Shark", color: "Sharp"},
27 ] 28 ]
28 assert_suggest_all "shar", ["shark", "sharp"] 29 assert_suggest_all "shar", ["shark", "sharp"]
29 end 30 end