From e7a7e174c1f8d31687676d74dabc6b464ffd81cb Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 19 Dec 2018 12:47:36 +0900 Subject: Pass the correct value as JSON This takes away the following log. ``` Error occurred while parsing request parameters. Contents: {:foo=>"heyo"} ``` Pass the correct value as JSON --- actionpack/test/controller/test_case_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/test/controller/test_case_test.rb') diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index bc64135589..d1cd190747 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -988,7 +988,7 @@ XML end def test_parsed_body_with_as_option - post :render_json, body: { foo: "heyo" }, as: :json + post :render_json, body: { foo: "heyo" }.to_json, as: :json assert_equal({ "foo" => "heyo" }, response.parsed_body) end end -- cgit v1.2.3