From 4d29d86c3db9725b09962ed98de6c7f5f4e79d3a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 4 Apr 2021 05:03:49 +0000 Subject: [PATCH] System test fails in Windows due to "/" path separator (#35024). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 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 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"] } -- 2.39.5