Fixed: list of users for adding to a group may be empty if 100 first users have been added (#8029).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5284 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -104,4 +104,13 @@ class GroupsControllerTest < ActionController::TestCase
|
||||
post :destroy_membership, :id => 10, :membership_id => 6
|
||||
end
|
||||
end
|
||||
|
||||
def test_autocomplete_for_user
|
||||
get :autocomplete_for_user, :id => 10, :q => 'mis'
|
||||
assert_response :success
|
||||
users = assigns(:users)
|
||||
assert_not_nil users
|
||||
assert users.any?
|
||||
assert !users.include?(Group.find(10).users.first)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user