1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05: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:
Ryan Bigg 2010-04-06 07:03:36 +10:00 committed by José Valim
parent 1f7b4447a9
commit efa7e96821

View file

@ -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