summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-05-24 10:41:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-05-24 10:41:13 +0000
commit8aeab43247f9c246edac565c25fa03d4b295504c (patch)
tree41aa6b938f8d30d557d4b4869dbcda8e810307f4 /test
parentcdf9cae4a2cfa0504c236cf43ab795d9c0e984ee (diff)
downloadredmine-8aeab43247f9c246edac565c25fa03d4b295504c.tar.gz
redmine-8aeab43247f9c246edac565c25fa03d4b295504c.zip
Count users with a single query on group list (#16905).
git-svn-id: http://svn.redmine.org/redmine/trunk@13149 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/groups_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index 35f0a4312..252472ab6 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -30,6 +30,12 @@ class GroupsControllerTest < ActionController::TestCase
assert_template 'index'
end
+ def test_index_should_show_user_count
+ get :index
+ assert_response :success
+ assert_select 'tr#group-11 td.user_count', :text => '1'
+ end
+
def test_show
get :show, :id => 10
assert_response :success