diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index d2e6c17f..bcc0b3e8 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -52,8 +52,9 @@ class SearchControllerTest < ActionController::TestCase assert assigns(:results).include?(Issue.find(8)) assert assigns(:results).include?(Issue.find(5)) - assert_tag :dt, :attributes => { :class => /issue/ }, - :child => { :tag => 'a', :content => /Closed/ } + assert_select "dt.issue" do + assert_select "a", :text => /Closed/ + end end def test_search_project_and_subprojects