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