Commit 0ef1b892 authored by jplang's avatar jplang
Browse files

Fixes test conditions.

git-svn-id: https://svn.redmine.org/redmine/trunk@8076 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1362d591
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment