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:
parent
1f48c09094
commit
42b4407e35
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue