aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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