Tweaks raised Exceptions to mask noisy (unneeded) parts of the backtrace
Constants
| IGNORE_PATTERNS | = | spec_files + [ /\/rspec-[^\/]*\/lib\/spec\//, /\/spork-[^\/]*\/lib\/spork\//, /\/lib\/ruby\//, /bin\/spec:/, /bin\/spork:/, /bin\/rcov:/, /lib\/rspec-rails/, /vendor\/rails/, # TextMate's Ruby and RSpec plugins /Ruby\.tmbundle\/Support\/tmruby.rb:/, /RSpec\.tmbundle\/Support\/lib/, /temp_textmate\./, /mock_frameworks\/rspec/, /spec_server/ ] |
Public class methods
new
(*patterns)
[show source]
# File lib/spec/runner/backtrace_tweaker.rb, line 63 def initialize(*patterns) super ignore_patterns(*patterns) end
Public instance methods
ignore_patterns
(*patterns)
[show source]
# File lib/spec/runner/backtrace_tweaker.rb, line 68 def ignore_patterns(*patterns) @ignore_patterns += patterns.flatten.map { |pattern| Regexp.new(pattern) } end
ignored_patterns
()
[show source]
# File lib/spec/runner/backtrace_tweaker.rb, line 72 def ignored_patterns IGNORE_PATTERNS + @ignore_patterns end