]> source.dussan.org Git - redmine.git/commitdiff
Fixes the assertion so that it doesn't rely on the display order (#32436).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 20 Nov 2019 15:07:23 +0000 (15:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 20 Nov 2019 15:07:23 +0000 (15:07 +0000)
Patch by Kouhei Sutou.

git-svn-id: http://svn.redmine.org/redmine/trunk@19092 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/timelog_controller_test.rb

index 862fc226d17bc60cc93bf23394402229f580be20..38f3c06bda69c698f9ea4b59f84b9bfd880ca877 100644 (file)
@@ -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