From cad148cb5ccd1fbe72154e38bb8a76f0d2c2ff77 2011-12-04 19:12:15 From: Jean-Philippe Lang Date: 2011-12-04 19:12:15 Subject: [PATCH] Fixes test conditions. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8076 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index bf76ada..30baac9 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -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