Fixes test conditions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8076 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-04 19:12:15 +00:00
parent 2cca4938cf
commit cad148cb5c
1 changed files with 2 additions and 2 deletions

View File

@ -538,8 +538,8 @@ class IssuesControllerTest < ActionController::TestCase
assert_response :success
end
def test_index_group_by_spent_hours
get :index, :group_by => 'author', :sort => 'spent_hours:desc'
def test_index_sort_by_spent_hours
get :index, :sort => 'spent_hours:desc'
assert_response :success
hours = assigns(:issues).collect(&:spent_hours)
assert_equal hours.sort.reverse, hours