aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/testing/test_case.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-04-30 11:40:29 -0500
committerJoshua Peek <josh@joshpeek.com>2009-04-30 11:42:01 -0500
commit988513ac7a0cbd820c9486088256b8ab4e8acf74 (patch)
treecd1ed4bc53db835d7fe70f4a996d7e878663f10d /actionpack/lib/action_controller/testing/test_case.rb
parent79420e71e0e75d6f81e5284184bac4e7d0b02c30 (diff)
downloadrails-988513ac7a0cbd820c9486088256b8ab4e8acf74.tar.gz
rails-988513ac7a0cbd820c9486088256b8ab4e8acf74.tar.bz2
rails-988513ac7a0cbd820c9486088256b8ab4e8acf74.zip
Framework backtrace cleaning is handled by ActiveSupport now
Diffstat (limited to 'actionpack/lib/action_controller/testing/test_case.rb')
-rw-r--r--actionpack/lib/action_controller/testing/test_case.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/testing/test_case.rb b/actionpack/lib/action_controller/testing/test_case.rb
index b020b755a0..a80488e13e 100644
--- a/actionpack/lib/action_controller/testing/test_case.rb
+++ b/actionpack/lib/action_controller/testing/test_case.rb
@@ -109,14 +109,6 @@ module ActionController
%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