diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-30 14:24:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-30 14:24:51 +0000 |
commit | 2355324d73e26f224e2b13b21249f181314b289f (patch) | |
tree | 82df3a96b4376a927ae04b48b29393bd46d56a27 /test/functional/projects_controller_test.rb | |
parent | 6eee9dbf88de71b28cc78f3b4003f54f04795e04 (diff) | |
download | redmine-2355324d73e26f224e2b13b21249f181314b289f.tar.gz redmine-2355324d73e26f224e2b13b21249f181314b289f.zip |
Jump to the current tab when using the project quick-jump combo (#2364).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2210 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index a8f8ecb76..8737b3c59 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -287,6 +287,23 @@ class ProjectsControllerTest < Test::Unit::TestCase assert Project.find(1).active? end + def test_jump_should_redirect_to_active_tab + get :show, :id => 1, :jump => 'issues' + assert_redirected_to 'projects/ecookbook/issues' + end + + def test_jump_should_not_redirect_to_inactive_tab + get :show, :id => 3, :jump => 'documents' + assert_response :success + assert_template 'show' + end + + def test_jump_should_not_redirect_to_unknown_tab + get :show, :id => 3, :jump => 'foobar' + assert_response :success + assert_template 'show' + end + def test_project_menu assert_no_difference 'Redmine::MenuManager.items(:project_menu).size' do Redmine::MenuManager.map :project_menu do |menu| |