diff options
author | Go MAEDA <maeda@farend.jp> | 2019-01-22 08:23:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-01-22 08:23:53 +0000 |
commit | eda4b6514b3ec1977720bc9d59d436b2d09b4c0f (patch) | |
tree | 885966bf88ab5387ab8f906d49f63a60739c1c2e /test/functional | |
parent | 61a365789fc0a387dcdacea4d13ecca6bcade5c5 (diff) | |
download | redmine-eda4b6514b3ec1977720bc9d59d436b2d09b4c0f.tar.gz redmine-eda4b6514b3ec1977720bc9d59d436b2d09b4c0f.zip |
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
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issues_controller_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 08a2187ff..7e1d3e9bf 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -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 |