]> source.dussan.org Git - redmine.git/commitdiff
do not delete Chrome downloaded files on Linux
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 Sep 2019 13:14:05 +0000 (13:14 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 Sep 2019 13:14:05 +0000 (13:14 +0000)
https://github.com/SeleniumHQ/selenium/issues/5292

git-svn-id: http://svn.redmine.org/redmine/trunk@18531 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/application_system_test_case.rb

index 8b552e3b76e0be0a7edbed102034aa1f6b3d159b..44d2c83db4c97abc79fdc457a93b27e3fd72c5fe 100644 (file)
@@ -59,7 +59,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
   end
 
   def clear_downloaded_files
-    FileUtils.rm downloaded_files
+    # https://github.com/SeleniumHQ/selenium/issues/5292
+    FileUtils.rm downloaded_files if Redmine::Platform.mswin?
   end
 
   def downloaded_files(filename='*')