1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Fix RuboCop Performance/RedundantMerge due to r20428 (#34269).

git-svn-id: http://svn.redmine.org/redmine/trunk@20490 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2020-11-23 00:54:33 +00:00
parent 8453d9bf57
commit 3896694b5f

View File

@ -28,8 +28,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
options = {} options = {}
# Allow running tests using a remote Selenium hub # Allow running tests using a remote Selenium hub
options.merge!(url: ENV['SELENIUM_REMOTE_URL']) if ENV['SELENIUM_REMOTE_URL'] options[:url] = ENV['SELENIUM_REMOTE_URL'] if ENV['SELENIUM_REMOTE_URL']
options.merge!(desired_capabilities: Selenium::WebDriver::Remote::Capabilities.chrome( options[:desired_capabilities] = Selenium::WebDriver::Remote::Capabilities.chrome(
'chromeOptions' => { 'chromeOptions' => {
'prefs' => { 'prefs' => {
'download.default_directory' => DOWNLOADS_PATH, 'download.default_directory' => DOWNLOADS_PATH,
@ -37,7 +37,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
'plugins.plugins_disabled' => ["Chrome PDF Viewer"] 'plugins.plugins_disabled' => ["Chrome PDF Viewer"]
} }
} }
)) )
driven_by( driven_by(
:selenium, using: :chrome, screen_size: [1024, 900], :selenium, using: :chrome, screen_size: [1024, 900],