test/highlight_test.rb in searchkick-1.4.2 vs test/highlight_test.rb in searchkick-1.5.0
- old
+ new
@@ -20,10 +20,10 @@
def test_fields
store [{name: "Two Door Cinema Club", color: "Cinema Orange"}]
highlight = Product.search("cinema", fields: [:name, :color], highlight: {fields: [:name]}).with_details.first[1][:highlight]
assert_equal "Two Door <em>Cinema</em> Club", highlight[:name]
- assert_equal nil, highlight[:color]
+ assert_nil highlight[: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