From b29ec77bb7dc43890018740384f6c85e79015baa Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 14 Oct 2019 17:47:17 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/CaseIndentation in test/test_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18662 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - test/test_helper.rb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index cd23a7fc2..bd4863330 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: diff --git a/test/test_helper.rb b/test/test_helper.rb index 390d09518..e27334ca4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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