Use #assert_select instead of #assert_tag.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11066 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-12-22 09:35:35 +00:00
parent eecabc5bb0
commit 3976d5e740
6 changed files with 134 additions and 208 deletions
+2 -2
View File
@@ -94,8 +94,8 @@ class AccountControllerTest < ActionController::TestCase
assert_template 'register'
assert_not_nil assigns(:user)
assert_tag 'input', :attributes => {:name => 'user[password]'}
assert_tag 'input', :attributes => {:name => 'user[password_confirmation]'}
assert_select 'input[name=?]', 'user[password]'
assert_select 'input[name=?]', 'user[password_confirmation]'
end
end