Revision 9d43fc71
Added by Michael Moll almost 6 years ago
test/unit/menu_mapper_test.rb | ||
---|---|---|
test 'deleting all items' do
|
||
# Exposed by deleting :last items
|
||
Menu::Manager.map :test_menu do |menu|
|
||
menu.item :not_last, :url_hash=> { :controller => 'hosts', :action => 'index'}
|
||
menu.item :administration, :url_hash=> { :controller => 'hosts', :action => 'show'}, :last => true
|
||
menu.item :not_last, :url_hash => { :controller => 'hosts', :action => 'index'}
|
||
menu.item :administration, :url_hash => { :controller => 'hosts', :action => 'show'}, :last => true
|
||
menu.item :help, :url_hash => { :controller => 'help', :action => 'show'}, :last => true
|
||
end
|
||
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop