instance method
clean_backtrace
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
clean_backtrace(&block)
No documentation comment.
Parameters
-
blockblock
Source
# File actionpack/lib/action_controller/test_case.rb, line 118
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
Defined in actionpack/lib/action_controller/test_case.rb line 118
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Assertions