Commit 00eff51b00fc156923f327ec706427a9126dc399

Authored by Andrew Kane
1 parent a71c60a2

Added test case for #855

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
test/boost_test.rb
... ... @@ -86,6 +86,14 @@ class BoostTest < Minitest::Test
86 86 assert_order "red", ["Red", "White"], fields: [{"name^10" => :word_start}, "color"]
87 87 end
88 88  
  89 + # for issue #855
  90 + def test_apostrophes
  91 + store_names ["Valentine's Day Special"]
  92 + assert_search "Valentines", ["Valentine's Day Special"], fields: ["name^5"]
  93 + assert_search "Valentine's", ["Valentine's Day Special"], fields: ["name^5"]
  94 + assert_search "Valentine", ["Valentine's Day Special"], fields: ["name^5"]
  95 + end
  96 +
89 97 def test_boost_by
90 98 store [
91 99 {name: "Tomato A"},
... ...