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:
parent
2cca4938cf
commit
cad148cb5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue