summaryrefslogtreecommitdiffstats
path: root/test/functional/groups_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-18 17:57:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-18 17:57:16 +0000
commit1257f1960ff6d59b2f3f7890777d3481f1800430 (patch)
tree6be67b6fc92cb8a408ed002fc6fe219ea566bb9a /test/functional/groups_controller_test.rb
parent10c96dba8b79822e1d54ef58bb8139851cf30c80 (diff)
downloadredmine-1257f1960ff6d59b2f3f7890777d3481f1800430.tar.gz
redmine-1257f1960ff6d59b2f3f7890777d3481f1800430.zip
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
Diffstat (limited to 'test/functional/groups_controller_test.rb')
-rw-r--r--test/functional/groups_controller_test.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index 03a5c4229..67edb9261 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -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