Commit 0ec42ebc0d851da5bd8428099dc01dea26064f35

Authored by Andrew Kane
1 parent a0d94a51

Fixed test [skip ci]

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
test/parameters_test.rb
... ... @@ -21,8 +21,7 @@ class ParametersTest < Minitest::Test
21 21  
22 22 def test_where_hash
23 23 params = ActionController::Parameters.new({store_id: {value: 10, boost: 2}})
24   - # TODO make TypeError
25   - error = assert_raises Searchkick::InvalidQueryError do
  24 + error = assert_raises(TypeError) do
26 25 assert_search "product", [], where: {store_id: params[:store_id]}
27 26 end
28 27 assert_equal error.message, "can't cast ActionController::Parameters"
... ...