| Module | ActionController::TestCase::Assertions |
| In: |
vendor/rails/actionpack/lib/action_controller/test_case.rb
|
# File vendor/rails/actionpack/lib/action_controller/test_case.rb, line 118
118: def clean_backtrace(&block)
119: yield
120: rescue ActiveSupport::TestCase::Assertion => error
121: framework_path = Regexp.new(File.expand_path("#{File.dirname(__FILE__)}/assertions"))
122: error.backtrace.reject! { |line| File.expand_path(line) =~ framework_path }
123: raise
124: end