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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user