summaryrefslogtreecommitdiffstats
path: root/test/functional/admin_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-07 20:16:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-07 20:16:30 +0000
commit174f014564b318feaab234aa3a16d4b579e74a7f (patch)
tree8737baf335d1347e100e7c63d46209c915e8b123 /test/functional/admin_controller_test.rb
parent5266e328c029405ab132f4fb99a5ba9bc1d6ba67 (diff)
downloadredmine-174f014564b318feaab234aa3a16d4b579e74a7f.tar.gz
redmine-174f014564b318feaab234aa3a16d4b579e74a7f.zip
Fixes broken admin menu extension (#4351).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3131 e93f8b46-1217-0410-a6f0-8f06a7374b81
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