test/match_test.rb in searchkick-0.2.2 vs test/match_test.rb in searchkick-0.2.3

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: utf-8 + require_relative "test_helper" class TestMatch < Minitest::Unit::TestCase # exact @@ -17,14 +19,14 @@ def test_cheese_space_in_index store_names ["Pepper Jack Cheese Skewers"] assert_search "pepperjack cheese skewers", ["Pepper Jack Cheese Skewers"] end - def test_cheese_space_in_query - store_names ["Pepperjack Cheese Skewers"] - assert_search "pepper jack cheese skewers", ["Pepperjack Cheese Skewers"] - end + # def test_cheese_space_in_query + # store_names ["Pepperjack Cheese Skewers"] + # assert_search "pepper jack cheese skewers", ["Pepperjack Cheese Skewers"] + # end def test_middle_token store_names ["Dish Washer Amazing Organic Soap"] assert_search "dish soap", ["Dish Washer Amazing Organic Soap"] end @@ -125,23 +127,11 @@ def test_spaces_stemming store_names ["Almond Milk"] assert_search "almondmilks", ["Almond Milk"] end - # autocomplete - - def test_autocomplete - store_names ["Hummus"] - assert_search "hum", ["Hummus"], autocomplete: true - end - - def test_autocomplete_two_words - store_names ["Organic Hummus"] - assert_search "hum", [], autocomplete: true - end - - def test_autocomplete_fields - store_names ["Hummus"] - assert_search "hum", ["Hummus"], autocomplete: true, fields: [:name] + def test_all + store_names ["Product A", "Product B"] + assert_search "*", ["Product A", "Product B"] end end