aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-10-29 14:42:39 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-10-29 14:42:52 -0700
commit82328a563f24ff52ce2c5f9966fea9f38184820f (patch)
treed6e90acb40fb792be5546b82de29c3159a3f0027 /actionpack
parent7f41321cbda1a946c8d8e15b31587af63ae97428 (diff)
downloadrails-82328a563f24ff52ce2c5f9966fea9f38184820f.tar.gz
rails-82328a563f24ff52ce2c5f9966fea9f38184820f.tar.bz2
rails-82328a563f24ff52ce2c5f9966fea9f38184820f.zip
switch to JSON.dump to avoid infinite recursion
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/test_case_test.rb2
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