mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 07:21:12 +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/helpers/gantt.rb'
|
||||||
- 'lib/redmine/menu_manager.rb'
|
- 'lib/redmine/menu_manager.rb'
|
||||||
- 'lib/redmine/views/builders.rb'
|
- 'lib/redmine/views/builders.rb'
|
||||||
- 'test/test_helper.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/ClosingHeredocIndentation:
|
Layout/ClosingHeredocIndentation:
|
||||||
|
|||||||
@ -87,7 +87,8 @@ class ActiveSupport::TestCase
|
|||||||
|
|
||||||
def with_settings(options, &block)
|
def with_settings(options, &block)
|
||||||
saved_settings = options.keys.inject({}) do |h, k|
|
saved_settings = options.keys.inject({}) do |h, k|
|
||||||
h[k] = case Setting[k]
|
h[k] =
|
||||||
|
case Setting[k]
|
||||||
when Symbol, false, true, nil
|
when Symbol, false, true, nil
|
||||||
Setting[k]
|
Setting[k]
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user