test/suggest_test.rb in searchkick-0.3.3 vs test/suggest_test.rb in searchkick-0.3.4

- old
+ new

@@ -2,20 +2,20 @@ class TestSuggest < Minitest::Unit::TestCase def test_basic store_names ["Great White Shark", "Hammerhead Shark", "Tiger Shark"] - assert_suggest "How Big is a Tigre Shar", "how big is a tiger shark" + assert_suggest "How Big is a Tigre Shar", "how big is a tiger shark", fields: [:name] end def test_perfect store_names ["Tiger Shark", "Great White Shark"] - assert_suggest "Tiger Shark", nil # no correction + assert_suggest "Tiger Shark", nil, fields: [:name] # no correction end def test_phrase store_names ["Big Tiger Shark", "Tiger Sharp Teeth", "Tiger Sharp Mind"] - assert_suggest "How to catch a big tiger shar", "how to catch a big tiger shark" + assert_suggest "How to catch a big tiger shar", "how to catch a big tiger shark", fields: [:name] end def test_without_option assert_raises(RuntimeError){ Product.search("hi").suggestions } end