Class: Spec::Runner::NoisyBacktraceTweaker

Inherits:
BacktraceTweaker show all
Defined in:
lib/spec/runner/backtrace_tweaker.rb

Instance Method Summary collapse

Methods inherited from BacktraceTweaker

#clean_up_double_slashes

Instance Method Details

#tweak_backtrace(error, spec_name) ⇒ Object



10
11
12
13
14
15
# File 'lib/spec/runner/backtrace_tweaker.rb', line 10

def tweak_backtrace(error, spec_name)
  return if error.backtrace.nil?
  error.backtrace.each do |line|
    clean_up_double_slashes(line)
  end
end