]> source.dussan.org Git - redmine.git/commitdiff
System test fails in Windows due to "/" path separator (#35024).
authorGo MAEDA <maeda@farend.jp>
Sun, 4 Apr 2021 05:03:49 +0000 (05:03 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 4 Apr 2021 05:03:49 +0000 (05:03 +0000)
Patch by Pavel Rosický.

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

test/application_system_test_case.rb

index 1a572a07c51d070b265d29590633cd14afa298fa..27567bb9ca9a63591d91426ab0ab674720935b04 100644 (file)
@@ -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"]
                     }