summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-30 20:16:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-30 20:16:17 +0000
commit52fbcebb6dfd69302b43b9785e92a654c8c331ca (patch)
tree7e1fb3100288f9837f0a0abc6cf0ca429f5717ec /test
parent58c3270a7d993927e52803343e542749c40d12d9 (diff)
downloadredmine-52fbcebb6dfd69302b43b9785e92a654c8c331ca.tar.gz
redmine-52fbcebb6dfd69302b43b9785e92a654c8c331ca.zip
Adds name filter on group list.
git-svn-id: http://svn.redmine.org/redmine/trunk@15757 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/groups_controller_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index 481460a06..19f95d357 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -36,6 +36,15 @@ class GroupsControllerTest < Redmine::ControllerTest
assert_select 'tr#group-11 td.user_count', :text => '1'
end
+ def test_index_with_name_filter
+ Group.generate!(:name => "Clients")
+
+ get :index, :name => "cli"
+ assert_response :success
+ assert_select 'table.groups tbody tr', 1
+ assert_select 'table.groups tbody td.name', :text => 'Clients'
+ end
+
def test_show
get :show, :id => 10
assert_response :success