mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user