]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop Style/MultilineIfModifier due to r20428 (#34269).
authorGo MAEDA <maeda@farend.jp>
Mon, 23 Nov 2020 00:58:23 +0000 (00:58 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 23 Nov 2020 00:58:23 +0000 (00:58 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20491 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/application_system_test_case.rb

index e71a231b40e8ae50f276a78083b05bb76eee8b3c..363e78a127df489672455b740c9e9a34ccd69878 100644 (file)
@@ -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