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

switch to JSON.dump to avoid infinite recursion

This commit is contained in:
Aaron Patterson 2015-10-29 14:42:39 -07:00
parent 7f41321cbd
commit 82328a563f

View file

@ -75,7 +75,7 @@ class TestCaseTest < ActionController::TestCase
end
def test_headers
render plain: request.headers.env.to_json
render plain: ::JSON.dump(request.headers.env)
end
def test_html_output