diff options
author | Ryan Bigg <ryan@getup.org.au> | 2010-04-06 07:03:36 +1000 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-05 23:50:12 +0200 |
commit | efa7e96821a3d335fab9cd9ed1dfa6c6cd6744a2 (patch) | |
tree | c0872cc653092fff8b7db0891734a695b61fb915 | |
parent | 1f7b4447a9030ccec542ecaa1e5e11e0d4622a84 (diff) | |
download | rails-efa7e96821a3d335fab9cd9ed1dfa6c6cd6744a2.tar.gz rails-efa7e96821a3d335fab9cd9ed1dfa6c6cd6744a2.tar.bz2 rails-efa7e96821a3d335fab9cd9ed1dfa6c6cd6744a2.zip |
It seems the test directory backtrace line is output with a / before it, thereby previously making it not match the regex. Support APP_DIRS that have backtrace lines maybe beginning with /. [#4277 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | railties/lib/rails/backtrace_cleaner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/backtrace_cleaner.rb b/railties/lib/rails/backtrace_cleaner.rb index 14eccd5a6a..ee2635d4cd 100644 --- a/railties/lib/rails/backtrace_cleaner.rb +++ b/railties/lib/rails/backtrace_cleaner.rb @@ -13,7 +13,7 @@ module Rails add_gem_filters - add_silencer { |line| !APP_DIRS.any? { |dir| line =~ /^#{dir}/ } } + add_silencer { |line| !APP_DIRS.any? { |dir| line =~ /^\/?#{dir}/ } } end private |