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