Skip to content

Commit

Permalink
Another backtrace tweak tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
wilson authored and dchelimsky committed Dec 19, 2008
1 parent 6cb6a63 commit 950ee9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/spec/runner/backtrace_tweaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ def clean_up_double_slashes(line)
class NoisyBacktraceTweaker < BacktraceTweaker
def tweak_backtrace(error)
return if error.backtrace.nil?
error.backtrace.each do |line|
tweaked = error.backtrace.collect do |line|
clean_up_double_slashes(line)
line
end
error.set_backtrace(tweaked)
end
end

Expand Down

0 comments on commit 950ee9a

Please sign in to comment.