[#400] Refactor old assert_tag to assert_select
This commit is contained in:
parent
a4f7629f1f
commit
078df72345
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue