1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Loosen check of error cause file

Since "actionpack" is not included in isolation test.
Ref: https://travis-ci.org/rails/rails/jobs/484514392#L2715
This commit is contained in:
yuuji.yaginuma 2019-01-26 10:12:52 +09:00
parent 110275546a
commit 7a1254cdb5

View file

@ -323,7 +323,7 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest
get "/not_found_original_exception", headers: { "action_dispatch.show_exceptions" => true } get "/not_found_original_exception", headers: { "action_dispatch.show_exceptions" => true }
assert_response 404 assert_response 404
assert_match %r{AbstractController::ActionNotFound}, body 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 end
test "show the last exception and cause even when the cause is mapped to resque_responses" do 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 "#Application-Trace-0" do
assert_select "code", /syntax error, unexpected/ assert_select "code", /syntax error, unexpected/
end 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 end
test "debug exceptions app shows user code that caused the error in source view" do test "debug exceptions app shows user code that caused the error in source view" do