Permalink
Browse files

Strip out the ./ part of the test path so the backtrace align perfectly

  • Loading branch information...
1 parent 1f48c09 commit 42b4407e35e8634370fb95dc6786d4fd0c0e6afa @dhh dhh committed Nov 24, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails/backtrace_cleaner.rb
@@ -13,6 +13,7 @@ def initialize
super
add_filter { |line| line.sub(RAILS_ROOT, '') }
add_filter { |line| line.sub(ERB_METHOD_SIG, '') }
+ add_filter { |line| line.sub('./', '/') } # for tests
add_silencer { |line| ALL_NOISE.any? { |dir| line.include?(dir) } }
end
end

0 comments on commit 42b4407

Please sign in to comment.