Class: Spec::Runner::NoisyBacktraceTweaker
- Inherits:
-
BacktraceTweaker
- Object
- BacktraceTweaker
- Spec::Runner::NoisyBacktraceTweaker
- Defined in:
- lib/gems/rspec-1.1.12/lib/spec/runner/backtrace_tweaker.rb
Instance Method Summary collapse
Methods inherited from BacktraceTweaker
Instance Method Details
#tweak_backtrace(error) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/gems/rspec-1.1.12/lib/spec/runner/backtrace_tweaker.rb', line 10 def tweak_backtrace(error) return if error.backtrace.nil? tweaked = error.backtrace.collect do |line| clean_up_double_slashes(line) line end error.set_backtrace(tweaked) end |