mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user