Commit 078df723 authored by Eric Davis's avatar Eric Davis

[#400] Refactor old assert_tag to assert_select

parent a4f7629f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment