mirror of
				https://github.com/redmine/redmine.git
				synced 2025-11-03 20:06:24 +01:00 
			
		
		
		
	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
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user