Revision 9d43fc71
Added by Michael Moll almost 6 years ago
test/unit/plugin_test.rb | ||
---|---|---|
end
|
||
|
||
def test_menu
|
||
url_hash = {:controller=>'hosts', :action=>'index'}
|
||
url_hash = {:controller => 'hosts', :action => 'index'}
|
||
assert_difference 'Menu::Manager.items(:project_menu).size' do
|
||
@klass.register :foo do
|
||
menu :project_menu, :foo_menu_item, :url_hash=>url_hash, :caption => 'Foo'
|
||
menu :project_menu, :foo_menu_item, :url_hash => url_hash, :caption => 'Foo'
|
||
end
|
||
end
|
||
menu_item = Menu::Manager.items(:project_menu).detect {|i| i.name == :foo_menu_item}
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop