From 46dd7a9ac02d833a295f17e31708c995d8bb013b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 23 Jul 2017 12:46:04 +0000 Subject: [PATCH] Don't try to open tmp files. git-svn-id: http://svn.redmine.org/redmine/trunk@16866 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/application_system_test_case.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 63b17f639..09dc1520a 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -61,7 +61,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase end def downloaded_files - Dir.glob("#{DOWNLOADS_PATH}/*").reject {|f| f=~/crdownload$/} + Dir.glob("#{DOWNLOADS_PATH}/*").reject {|f| f=~/\.(tmp|crdownload)$/} end # Returns the path of the download file