mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 08:46:01 +01:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user