summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb6
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