1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
yuuji.yaginuma 2018-12-19 12:47:36 +09:00
parent 0fa5b5510c
commit e7a7e174c1

View file

@ -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