Fixed that issue counts are 0 on project overview (#26376).

git-svn-id: http://svn.redmine.org/redmine/trunk@16766 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-07-08 07:20:01 +00:00
parent e1ff7c1848
commit d2cc2f9dca
3 changed files with 13 additions and 2 deletions

View File

@@ -543,6 +543,16 @@ class ProjectsControllerTest < Redmine::ControllerTest
assert_select 'a', :text => /Private child/
end
def test_show_by_member_on_leaf_project_should_display_issue_counts
@request.session[:user_id] = 2
get :show, :params => {
:id => 'onlinestore'
}
assert_response :success
# Make sure there's a > 0 issue count
assert_select 'table.issue-report td.total a', :text => %r{\A[1-9]\d*\z}
end
def test_settings
@request.session[:user_id] = 2 # manager
get :settings, :params => {