Commit fded93c779672299a1833948b7dac1558a6c7dce

Authored by Andrew Kane
1 parent 2af0b71a

Added failing test for #265

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
test/highlight_test.rb
... ... @@ -19,6 +19,12 @@ class TestHighlight < Minitest::Test
19 19 assert_equal "<em>Cinema</em> Orange", highlight[:color]
20 20 end
21 21  
  22 + def test_multiple_words
  23 + skip "Issue #265"
  24 + store_names ["Hello World Hello"]
  25 + assert_equal "<em>Hello</em> World <em>Hello</em>", Product.search("hello", fields: [:name], highlight: true).with_details.first[1][:highlight][:name]
  26 + end
  27 +
22 28 def test_json
23 29 store_names ["Two Door Cinema Club"]
24 30 json = {
... ...