diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-19 18:40:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-19 18:40:38 +0000 |
commit | b56f77322ac2f6a900ba011e767446e17401cf6f (patch) | |
tree | 49c20060c56b77bbb93802589dbd31bbf48ac6a6 /test/functional/issues_controller_test.rb | |
parent | dcc569fa34f7c961c2d2a5ba1f9da7b7a85b2f3b (diff) | |
download | redmine-b56f77322ac2f6a900ba011e767446e17401cf6f.tar.gz redmine-b56f77322ac2f6a900ba011e767446e17401cf6f.zip |
Adds a "New issue" link on the global issue list (#6204).
git-svn-id: http://svn.redmine.org/redmine/trunk@15345 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index f6e6459c7..14489dcb8 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1081,6 +1081,12 @@ class IssuesControllerTest < ActionController::TestCase assert_select 'a.new-issue', 0 end + def test_index_without_project_should_include_new_issue_link + @request.session[:user_id] = 2 + get :index + assert_select 'a.new-issue[href="/issues/new"]', :text => 'New issue' + end + def test_show_by_anonymous get :show, :id => 1 assert_response :success |