summaryrefslogtreecommitdiffstats
path: root/test/functional/admin_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/admin_controller_test.rb')
-rw-r--r--test/functional/admin_controller_test.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb
index 47091c42f..142a374e9 100644
--- a/test/functional/admin_controller_test.rb
+++ b/test/functional/admin_controller_test.rb
@@ -120,6 +120,21 @@ class AdminControllerTest < ActionController::TestCase
assert_template 'info'
end
+ def test_admin_menu_plugin_extension
+ Redmine::MenuManager.map :admin_menu do |menu|
+ menu.push :test_admin_menu_plugin_extension, '/foo/bar', :caption => 'Test'
+ end
+
+ get :index
+ assert_response :success
+ assert_tag :a, :attributes => { :href => '/foo/bar' },
+ :content => 'Test'
+
+ Redmine::MenuManager.map :admin_menu do |menu|
+ menu.delete :test_admin_menu_plugin_extension
+ end
+ end
+
private
def delete_configuration_data