code cleanup: rubocop: fix Layout/BlockAlignment in test/unit/lib/redmine/menu_manager/menu_helper_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18683 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-10-15 12:11:00 +00:00
parent 6b2fb0046a
commit 2117705cbc
2 changed files with 6 additions and 5 deletions

View File

@@ -57,7 +57,6 @@ Layout/BlockAlignment:
- 'app/models/principal.rb'
- 'app/models/project.rb'
- 'app/models/time_entry.rb'
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
# Cop supports --auto-correct.
Layout/BlockEndNewline:

View File

@@ -213,7 +213,6 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
end
def test_render_empty_virtual_menu_node_with_children
# only empty item with no click target
Redmine::MenuManager.map :menu1 do |menu|
menu.push(:parent_node, nil, { })
@@ -221,9 +220,12 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
# parent with unallowed unattached child
Redmine::MenuManager.map :menu2 do |menu|
menu.push(:parent_node, nil, {:children => Proc.new {|p|
[Redmine::MenuManager::MenuItem.new("test_child_unallowed", {:controller => 'issues', :action => 'new'}, {})]
} })
menu.push(:parent_node, nil,
{:children => Proc.new {|p|
[Redmine::MenuManager::MenuItem.new("test_child_unallowed",
{:controller => 'issues',
:action => 'new'}, {})]
}})
end
# parent with unallowed standard child