diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-24 15:43:47 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-24 15:43:47 +0100 |
commit | 42b4407e35e8634370fb95dc6786d4fd0c0e6afa (patch) | |
tree | d12efc629633610cca5112545ff419fd679da977 /railties | |
parent | 1f48c09094610cbf26ec1e93d9bf978b2ae86fa8 (diff) | |
download | rails-42b4407e35e8634370fb95dc6786d4fd0c0e6afa.tar.gz rails-42b4407e35e8634370fb95dc6786d4fd0c0e6afa.tar.bz2 rails-42b4407e35e8634370fb95dc6786d4fd0c0e6afa.zip |
Strip out the ./ part of the test path so the backtrace align perfectly
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/backtrace_cleaner.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/backtrace_cleaner.rb b/railties/lib/rails/backtrace_cleaner.rb index 88df0ebbda..82537d962f 100644 --- a/railties/lib/rails/backtrace_cleaner.rb +++ b/railties/lib/rails/backtrace_cleaner.rb @@ -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 |