Adds name filter on group list.

git-svn-id: http://svn.redmine.org/redmine/trunk@15757 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-08-30 20:16:17 +00:00
parent 58c3270a7d
commit 52fbcebb6d
2 changed files with 20 additions and 0 deletions

View File

@@ -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