Commit 4e0c047d2448f3de8fb6b0aacb90a3c5094405e9

Authored by Andrew Kane
1 parent 15326cac

More realistic test

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