From 00c751a1a6ad5ae67d93b7687b4b1ff9a8c7307e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 23 Nov 2020 00:58:23 +0000 Subject: [PATCH] Fix RuboCop Style/MultilineIfModifier due to r20428 (#34269). git-svn-id: http://svn.redmine.org/redmine/trunk@20491 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/application_system_test_case.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index e71a231b4..363e78a12 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -46,9 +46,11 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase setup do # Allow defining a custom app host (useful when using a remote Selenium hub) - Capybara.configure do |config| - config.app_host = ENV['CAPYBARA_APP_HOST'] - end if ENV['CAPYBARA_APP_HOST'] + if ENV['CAPYBARA_APP_HOST'] + Capybara.configure do |config| + config.app_host = ENV['CAPYBARA_APP_HOST'] + end + end clear_downloaded_files Setting.delete_all -- 2.39.5