Makes author column sortable and groupable on the issue list (#1567).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7843 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-11-19 12:47:56 +00:00
parent bf18ee107d
commit 8ec1231dbc
2 changed files with 14 additions and 1 deletions
+10
View File
@@ -397,6 +397,16 @@ class IssuesControllerTest < ActionController::TestCase
assert !issues.empty?
assert_equal issues.sort {|a,b| a.tracker == b.tracker ? b.id <=> a.id : a.tracker <=> b.tracker }.collect(&:id), issues.collect(&:id)
end
def test_index_sort_by_author
get :index, :sort => 'author'
assert_response :success
end
def test_index_group_by_author
get :index, :group_by => 'author', :sort => 'priority'
assert_response :success
end
def test_index_with_columns
columns = ['tracker', 'subject', 'assigned_to']