IssuesControllerTest#test_index_sort_by_total_estimated_hours tests nothing (#30474).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17837 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-01-22 08:23:53 +00:00
parent 61a365789f
commit eda4b6514b
2 changed files with 6 additions and 0 deletions

View File

@@ -1067,6 +1067,8 @@ class IssuesControllerTest < Redmine::ControllerTest
}
assert_response :success
hours = issues_in_list.map(&:total_estimated_hours)
# Removes nil because the position of NULL is database dependent
hours.compact!
assert_equal hours.sort.reverse, hours
end