aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/testing/test_case.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-05-02 03:21:40 -0300
committerEmilio Tagua <miloops@gmail.com>2009-05-02 03:21:40 -0300
commit5e790d368c5d0e89cfd5ef1245e4b131be63716f (patch)
treefe26ed0a2b3056dd67fe46558abd96712cef67d5 /actionpack/lib/action_controller/testing/test_case.rb
parent9f36431f58c406312d0b0317543b7f69107e61e9 (diff)
parent3be3470fab788856b4559742434f195cc6b1009a (diff)
downloadrails-5e790d368c5d0e89cfd5ef1245e4b131be63716f.tar.gz
rails-5e790d368c5d0e89cfd5ef1245e4b131be63716f.tar.bz2
rails-5e790d368c5d0e89cfd5ef1245e4b131be63716f.zip
Merge commit 'rails/master'
Diffstat (limited to 'actionpack/lib/action_controller/testing/test_case.rb')
-rw-r--r--actionpack/lib/action_controller/testing/test_case.rb15
1 files changed, 1 insertions, 14 deletions
diff --git a/actionpack/lib/action_controller/testing/test_case.rb b/actionpack/lib/action_controller/testing/test_case.rb
index b020b755a0..7b4eda58e5 100644
--- a/actionpack/lib/action_controller/testing/test_case.rb
+++ b/actionpack/lib/action_controller/testing/test_case.rb
@@ -105,20 +105,7 @@ module ActionController
class TestCase < ActiveSupport::TestCase
include TestProcess
- module Assertions
- %w(response selector tag dom routing model).each do |kind|
- include ActionController::Assertions.const_get("#{kind.camelize}Assertions")
- end
-
- def clean_backtrace(&block)
- yield
- rescue ActiveSupport::TestCase::Assertion => error
- framework_path = Regexp.new(File.expand_path("#{File.dirname(__FILE__)}/assertions"))
- error.backtrace.reject! { |line| File.expand_path(line) =~ framework_path }
- raise
- end
- end
- include Assertions
+ include ActionDispatch::Assertions
# When the request.remote_addr remains the default for testing, which is 0.0.0.0, the exception is simply raised inline
# (bystepping the regular exception handling from rescue_action). If the request.remote_addr is anything else, the regular