1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
David Heinemeier Hansson 2008-11-24 15:43:47 +01:00
parent 1f48c09094
commit 42b4407e35

View file

@ -13,6 +13,7 @@ module Rails
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