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:
parent
0fa5b5510c
commit
e7a7e174c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue