aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-01-26 10:12:52 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-01-26 10:13:47 +0900
commit7a1254cdb527ca29e05c74451c2d3e6448dac1ec (patch)
treeb90174c8c9de706d8637a04ff437696c1e558fdd
parent110275546aa3e50000a7abec0da4347522cbc115 (diff)
downloadrails-7a1254cdb527ca29e05c74451c2d3e6448dac1ec.tar.gz
rails-7a1254cdb527ca29e05c74451c2d3e6448dac1ec.tar.bz2
rails-7a1254cdb527ca29e05c74451c2d3e6448dac1ec.zip
Loosen check of error cause file
Since "actionpack" is not included in isolation test. Ref: https://travis-ci.org/rails/rails/jobs/484514392#L2715
-rw-r--r--actionpack/test/dispatch/debug_exceptions_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/debug_exceptions_test.rb b/actionpack/test/dispatch/debug_exceptions_test.rb
index abb42af53f..6914fb66f9 100644
--- a/actionpack/test/dispatch/debug_exceptions_test.rb
+++ b/actionpack/test/dispatch/debug_exceptions_test.rb
@@ -323,7 +323,7 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest
get "/not_found_original_exception", headers: { "action_dispatch.show_exceptions" => true }
assert_response 404
assert_match %r{AbstractController::ActionNotFound}, body
- assert_match %r{Showing <i>/.*/actionpack/test/dispatch/debug_exceptions_test.rb</i>}, body
+ assert_match %r{Showing <i>.*test/dispatch/debug_exceptions_test.rb</i>}, body
end
test "show the last exception and cause even when the cause is mapped to resque_responses" do
@@ -494,7 +494,7 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest
assert_select "#Application-Trace-0" do
assert_select "code", /syntax error, unexpected/
end
- assert_match %r{Showing <i>/.*/actionpack/test/dispatch/debug_exceptions_test.rb</i>}, body
+ assert_match %r{Showing <i>.*test/dispatch/debug_exceptions_test.rb</i>}, body
end
test "debug exceptions app shows user code that caused the error in source view" do