summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-10 18:33:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-10 18:33:36 +0000
commit2734eaffd823986c0da99ee4162000054571f422 (patch)
treee6fcd3d31fa3851a1196945a9dd473d041487923 /test/functional/projects_controller_test.rb
parentf1a42f21a6e6f7931973df3344525e222c9c7cc9 (diff)
downloadredmine-2734eaffd823986c0da99ee4162000054571f422.tar.gz
redmine-2734eaffd823986c0da99ee4162000054571f422.zip
Adds a link to all projects in the jump drop down (#23310).
git-svn-id: http://svn.redmine.org/redmine/trunk@16172 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index da2818174..db81206fb 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -745,6 +745,16 @@ class ProjectsControllerTest < Redmine::ControllerTest
assert_select_error /Identifier cannot be blank/
end
+ def test_jump_without_project_id_should_redirect_to_active_tab
+ get :index, :jump => 'issues'
+ assert_redirected_to '/issues'
+ end
+
+ def test_jump_should_not_redirect_to_unknown_tab
+ get :index, :jump => 'foobar'
+ assert_response :success
+ end
+
def test_jump_should_redirect_to_active_tab
get :show, :id => 1, :jump => 'issues'
assert_redirected_to '/projects/ecookbook/issues'