[#400] Refactor old assert_tag to assert_select

This commit is contained in:
Eric Davis 2011-05-20 14:23:54 -07:00
parent a4f7629f1f
commit 078df72345
1 changed files with 3 additions and 2 deletions

View File

@ -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