@@ -538,8 +538,8 class IssuesControllerTest < ActionController::TestCase | |||||
538 | assert_response :success |
|
538 | assert_response :success | |
539 | end |
|
539 | end | |
540 |
|
540 | |||
541 |
def test_index_ |
|
541 | def test_index_sort_by_spent_hours | |
542 |
get :index |
|
542 | get :index, :sort => 'spent_hours:desc' | |
543 | assert_response :success |
|
543 | assert_response :success | |
544 | hours = assigns(:issues).collect(&:spent_hours) |
|
544 | hours = assigns(:issues).collect(&:spent_hours) | |
545 | assert_equal hours.sort.reverse, hours |
|
545 | assert_equal hours.sort.reverse, hours |
General Comments 0
You need to be logged in to leave comments.
Login now