diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-12-01 11:43:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-12-01 11:43:22 +0000 |
commit | 78a15a23b418ff0cafb5c88bc775c17c1726e156 (patch) | |
tree | ba4b7dfad92f2a916a4eee730fc3bd736e7288fd /test/functional/issues_controller_test.rb | |
parent | 6309131c139044fd6d3bb1264cffdefbe28a307b (diff) | |
download | redmine-78a15a23b418ff0cafb5c88bc775c17c1726e156.tar.gz redmine-78a15a23b418ff0cafb5c88bc775c17c1726e156.zip |
Fix random test failure, assertion must be made against displayed values.
IssuesControllerTest#test_index_sort_by_spent_hours_should_sort_by_visible_spent_hours
Expected: [3.0, 0.0, 0.0]
Actual: [3.0, 4.0, 0.0]
git-svn-id: http://svn.redmine.org/redmine/trunk@17672 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 92440f573..872db7a1d 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -978,13 +978,13 @@ class IssuesControllerTest < Redmine::ControllerTest get :index, :params => {:sort => "spent_hours:desc", :c => ['subject','spent_hours']} assert_response :success - assert_equal [4.0, 3.0, 0.0], issues_in_list.map(&:spent_hours)[0..2] + assert_equal ['4.00', '3.00', '0.00'], columns_values_in_list('spent_hours')[0..2] Project.find(3).disable_module!(:time_tracking) get :index, :params => {:sort => "spent_hours:desc", :c => ['subject','spent_hours']} assert_response :success - assert_equal [3.0, 0.0, 0.0], issues_in_list.map(&:spent_hours)[0..2] + assert_equal ['3.00', '0.00', '0.00'], columns_values_in_list('spent_hours')[0..2] end def test_index_sort_by_total_spent_hours |