diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-12-19 12:47:36 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-12-19 12:47:36 +0900 |
commit | e7a7e174c1f8d31687676d74dabc6b464ffd81cb (patch) | |
tree | 697e2cf858d08bc9b20c8a8fa88c34312146e4ae /actionpack | |
parent | 0fa5b5510c6faefc33ab3715e08b2604195a1063 (diff) | |
download | rails-e7a7e174c1f8d31687676d74dabc6b464ffd81cb.tar.gz rails-e7a7e174c1f8d31687676d74dabc6b464ffd81cb.tar.bz2 rails-e7a7e174c1f8d31687676d74dabc6b464ffd81cb.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/test_case_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |