test/highlight_test.rb in searchkick-hooopo-2.3.3 vs test/highlight_test.rb in searchkick-hooopo-2.3.4
- old
+ new
@@ -30,10 +30,10 @@
assert_nil highlights[:color]
end
def test_field_options
store_names ["Two Door Cinema Club are a Northern Irish indie rock band"]
- fragment_size = ENV["MATCH"] == "word_start" ? 26 : 20
+ fragment_size = ENV["MATCH"] == "word_start" ? 26 : 21
assert_equal "Two Door <em>Cinema</em> Club are", Product.search("cinema", fields: [:name], highlight: {fields: {name: {fragment_size: fragment_size}}}).first.search_highlights[:name]
end
def test_multiple_words
store_names ["Hello World Hello"]