aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-15 12:51:59 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-15 12:51:59 -0300
commit3fce111b3bb602d0d65c76a450d0fa2d7c7b54a5 (patch)
treee129008c0090b2b7f5b47b050f63ebfe4562c9e3 /actionpack/test
parentccdea7bc83417e9b9ee4843976fff93c5c7cee32 (diff)
parent59dbf689606c35b6e32c565a56a6f616359c4e7e (diff)
downloadrails-3fce111b3bb602d0d65c76a450d0fa2d7c7b54a5.tar.gz
rails-3fce111b3bb602d0d65c76a450d0fa2d7c7b54a5.tar.bz2
rails-3fce111b3bb602d0d65c76a450d0fa2d7c7b54a5.zip
Merge pull request #14745 from razum2um/plain-text-diagnostics
Display diagnostics in text format for xhr request
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/debug_exceptions_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/debug_exceptions_test.rb b/actionpack/test/dispatch/debug_exceptions_test.rb
index 0dba651139..8660deb634 100644
--- a/actionpack/test/dispatch/debug_exceptions_test.rb
+++ b/actionpack/test/dispatch/debug_exceptions_test.rb
@@ -147,9 +147,10 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest
get "/", {}, xhr_request_env
assert_response 500
+ assert_no_match(/<header>/, body)
assert_no_match(/<body>/, body)
assert_equal response.content_type, "text/plain"
- assert_match(/puke/, body)
+ assert_match(/RuntimeError\npuke/, body)
get "/not_found", {}, xhr_request_env
assert_response 404