diff options
author | Vlad Bokov <razum2um@mail.ru> | 2014-04-14 20:45:40 +0700 |
---|---|---|
committer | Vlad Bokov <razum2um@mail.ru> | 2014-04-14 20:48:13 +0700 |
commit | 59dbf689606c35b6e32c565a56a6f616359c4e7e (patch) | |
tree | 8e5e4ad2a0c3261b273818c5e34d81831b63bc9f /actionpack/test/dispatch | |
parent | 97b5253a37eccf49ac2f9f4c5330801684312285 (diff) | |
download | rails-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.rb | 3 |
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 |