From: Go MAEDA Date: Sun, 4 Apr 2021 05:03:49 +0000 (+0000) Subject: System test fails in Windows due to "/" path separator (#35024). X-Git-Tag: 5.0.0~444 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d29d86c3db9725b09962ed98de6c7f5f4e79d3a;p=redmine.git System test fails in Windows due to "/" path separator (#35024). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20915 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 1a572a07c..27567bb9c 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -38,7 +38,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase 'goog:chromeOptions' => { 'args' => GOOGLE_CHROME_OPTS_ARGS, 'prefs' => { - 'download.default_directory' => DOWNLOADS_PATH, + 'download.default_directory' => DOWNLOADS_PATH.gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR), 'download.prompt_for_download' => false, 'plugins.plugins_disabled' => ["Chrome PDF Viewer"] }