aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorVlad Bokov <razum2um@mail.ru>2014-04-14 20:45:40 +0700
committerVlad Bokov <razum2um@mail.ru>2014-04-14 20:48:13 +0700
commit59dbf689606c35b6e32c565a56a6f616359c4e7e (patch)
tree8e5e4ad2a0c3261b273818c5e34d81831b63bc9f /actionpack/test/dispatch
parent97b5253a37eccf49ac2f9f4c5330801684312285 (diff)
downloadrails-59dbf689606c35b6e32c565a56a6f616359c4e7e.tar.gz
rails-59dbf689606c35b6e32c565a56a6f616359c4e7e.tar.bz2
rails-59dbf689606c35b6e32c565a56a6f616359c4e7e.zip
Display diagnostics in text format for xhr request
Diffstat (limited to 'actionpack/test/dispatch')
-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