diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-11-20 15:07:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-11-20 15:07:23 +0000 |
commit | 05e24edda9c0dd8689043c5905fdaa12537313d3 (patch) | |
tree | aa548432876b7577a3ccb83b69e6b050f5a4eaa4 /test/functional/timelog_controller_test.rb | |
parent | 977bbea725d0d6909d081390b3147e18340b532c (diff) | |
download | redmine-05e24edda9c0dd8689043c5905fdaa12537313d3.tar.gz redmine-05e24edda9c0dd8689043c5905fdaa12537313d3.zip |
Fixes the assertion so that it doesn't rely on the display order (#32436).
Patch by Kouhei Sutou.
git-svn-id: http://svn.redmine.org/redmine/trunk@19092 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 862fc226d..38f3c06bd 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -1426,10 +1426,8 @@ class TimelogControllerTest < Redmine::ControllerTest } assert_response :success - assert_select 'tr.group span.name' do |elements| - target_element = elements[1] - assert_equal "Bug #1: Cannot print recipes", target_element.text - assert_select target_element, '+ span.count', :text => '2' + assert_select 'tr.group span.name', :text => 'Bug #1: Cannot print recipes' do + assert_select '+ span.count', :text => '2' end end end |