Commit f548fd8e3e7670e33be2ba904c929fbae90a8964

Authored by Andrew Kane
1 parent 610937f8

Added tests cases for array equals

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
test/where_test.rb
... ... @@ -11,6 +11,10 @@ class WhereTest < Minitest::Test
11 11 ]
12 12 assert_search "product", ["Product A", "Product B"], where: {in_stock: true}
13 13  
  14 + # arrays
  15 + assert_search "product", ["Product A"], where: {user_ids: 2}
  16 + assert_search "product", ["Product A", "Product C"], where: {user_ids: [2, 3]}
  17 +
14 18 # due to precision
15 19 unless cequel?
16 20 # date
... ...