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