Adds pagination to users list when adding project or group members (#9549).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11200 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-01-18 17:57:16 +00:00
parent 10c96dba8b
commit 1257f1960f
17 changed files with 58 additions and 30 deletions
+2 -5
View File
@@ -195,11 +195,8 @@ class GroupsControllerTest < ActionController::TestCase
end
def test_autocomplete_for_user
get :autocomplete_for_user, :id => 10, :q => 'mis'
get :autocomplete_for_user, :id => 10, :q => 'smi', :format => 'js'
assert_response :success
users = assigns(:users)
assert_not_nil users
assert users.any?
assert !users.include?(Group.find(10).users.first)
assert_include 'John Smith', response.body
end
end