Commit 9f2a51a4da7cf8ebc6855462ff7996c4cca39ce1

Authored by Andrew Kane
1 parent 7b368944

Fixed tests

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
test/where_test.rb
... ... @@ -163,9 +163,7 @@ class WhereTest < Minitest::Test
163 163  
164 164 def test_like_special_characters
165 165 store_names ["Product ABC\"", "Product B"]
166   - like = "%ABC\""
167   - assert_equal 1, Product.where("name LIKE ?", like).count
168   - assert_search "product", ["Product ABC\""], where: {name: {like: like}}
  166 + assert_search "product", ["Product ABC\""], where: {name: {like: "%ABC\""}}
169 167 end
170 168  
171 169 # def test_script
... ...