summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-08 07:20:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-08 07:20:01 +0000
commitd2cc2f9dca3c0877e433f95162300ba02e869377 (patch)
tree9b18df4d316b5dbbe1c3b678778e1dc250ae6166 /test/functional
parente1ff7c18481cd730e461026c31801a7d7f2039ac (diff)
downloadredmine-d2cc2f9dca3c0877e433f95162300ba02e869377.tar.gz
redmine-d2cc2f9dca3c0877e433f95162300ba02e869377.zip
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
Diffstat (limited to 'test/functional')
-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 b0feee827..f34627e5b 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -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 => {