]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/CaseIndentation in test/test_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 17:47:17 +0000 (17:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 17:47:17 +0000 (17:47 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18662 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/test_helper.rb

index cd23a7fc207300201f0fdaac8bca6219b93f9c39..bd48633307339a2643b8ef4d18af120285d009d4 100644 (file)
@@ -80,7 +80,6 @@ Layout/CaseIndentation:
     - 'lib/redmine/helpers/gantt.rb'
     - 'lib/redmine/menu_manager.rb'
     - 'lib/redmine/views/builders.rb'
-    - 'test/test_helper.rb'
 
 # Cop supports --auto-correct.
 Layout/ClosingHeredocIndentation:
index 390d095183cf68951ee2ff743ae2a37129ea6401..e27334ca404c55ff1ab044b255116c20fdae8dde 100644 (file)
@@ -87,7 +87,8 @@ class ActiveSupport::TestCase
 
   def with_settings(options, &block)
     saved_settings = options.keys.inject({}) do |h, k|
-      h[k] = case Setting[k]
+      h[k] =
+        case Setting[k]
         when Symbol, false, true, nil
           Setting[k]
         else