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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user