instance method clean_backtrace

Ruby on Rails 2.2.3

Last seen in v2.2.3

Signature

clean_backtrace(&block)

No documentation comment.

Parameters

block block
Source
# File actionpack/lib/action_controller/assertions.rb, line 53
    def clean_backtrace(&block)
      yield
    rescue Test::Unit::AssertionFailedError => 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/assertions.rb line 53 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Assertions

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close