Class: Spec::Runner::NoisyBacktraceTweaker
- Inherits:
-
BacktraceTweaker
- Object
- BacktraceTweaker
- Spec::Runner::NoisyBacktraceTweaker
- Defined in:
- lib/spec/runner/backtrace_tweaker.rb
Overview
Tweaks raised Exceptions to mask noisy (unneeded) parts of the backtrace
Instance Method Summary collapse
Methods inherited from BacktraceTweaker
Instance Method Details
#tweak_backtrace(error, spec_name) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/spec/runner/backtrace_tweaker.rb', line 12 def tweak_backtrace(error, spec_name) return if error.backtrace.nil? error.backtrace.collect! do |line| tweak_instance_exec_line line, spec_name end error.backtrace.compact! end |