mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
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
This commit is contained in:
parent
87e2e3df5b
commit
b29ec77bb7
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user