test/highlight_test.rb in searchkick-2.3.1 vs test/highlight_test.rb in searchkick-2.3.2
- 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"]