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"] }