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