diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-10-29 14:42:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-10-29 14:42:52 -0700 |
commit | 82328a563f24ff52ce2c5f9966fea9f38184820f (patch) | |
tree | d6e90acb40fb792be5546b82de29c3159a3f0027 | |
parent | 7f41321cbda1a946c8d8e15b31587af63ae97428 (diff) | |
download | rails-82328a563f24ff52ce2c5f9966fea9f38184820f.tar.gz rails-82328a563f24ff52ce2c5f9966fea9f38184820f.tar.bz2 rails-82328a563f24ff52ce2c5f9966fea9f38184820f.zip |
switch to JSON.dump to avoid infinite recursion
-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 f1a296682d..e50373a0cc 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -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 |