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/principal.rb'
|
||||||
- 'app/models/project.rb'
|
- 'app/models/project.rb'
|
||||||
- 'app/models/time_entry.rb'
|
- 'app/models/time_entry.rb'
|
||||||
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/BlockEndNewline:
|
Layout/BlockEndNewline:
|
||||||
|
|||||||
@@ -213,7 +213,6 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_render_empty_virtual_menu_node_with_children
|
def test_render_empty_virtual_menu_node_with_children
|
||||||
|
|
||||||
# only empty item with no click target
|
# only empty item with no click target
|
||||||
Redmine::MenuManager.map :menu1 do |menu|
|
Redmine::MenuManager.map :menu1 do |menu|
|
||||||
menu.push(:parent_node, nil, { })
|
menu.push(:parent_node, nil, { })
|
||||||
@@ -221,8 +220,11 @@ class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
|
|||||||
|
|
||||||
# parent with unallowed unattached child
|
# parent with unallowed unattached child
|
||||||
Redmine::MenuManager.map :menu2 do |menu|
|
Redmine::MenuManager.map :menu2 do |menu|
|
||||||
menu.push(:parent_node, nil, {:children => Proc.new {|p|
|
menu.push(:parent_node, nil,
|
||||||
[Redmine::MenuManager::MenuItem.new("test_child_unallowed", {:controller => 'issues', :action => 'new'}, {})]
|
{:children => Proc.new {|p|
|
||||||
|
[Redmine::MenuManager::MenuItem.new("test_child_unallowed",
|
||||||
|
{:controller => 'issues',
|
||||||
|
:action => 'new'}, {})]
|
||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user