summaryrefslogtreecommitdiffstats
path: root/test/application_system_test_case.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-11-23 00:58:23 +0000
committerGo MAEDA <maeda@farend.jp>2020-11-23 00:58:23 +0000
commit00c751a1a6ad5ae67d93b7687b4b1ff9a8c7307e (patch)
treea1002e895a62d02742dfb9e6742ce29dbf1e4828 /test/application_system_test_case.rb
parent3896694b5f3e2edefa11f471e966cd01a11ecf78 (diff)
downloadredmine-00c751a1a6ad5ae67d93b7687b4b1ff9a8c7307e.tar.gz
redmine-00c751a1a6ad5ae67d93b7687b4b1ff9a8c7307e.zip
Fix RuboCop Style/MultilineIfModifier due to r20428 (#34269).
git-svn-id: http://svn.redmine.org/redmine/trunk@20491 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/application_system_test_case.rb')
-rw-r--r--test/application_system_test_case.rb8
1 files 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