- '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:
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, { })
# 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