Adds a helper for displaying validation error messages.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9017 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-26 18:07:13 +00:00
parent 9c264a7e66
commit 7c568cccaf
6 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ class MyControllerTest < ActionController::TestCase
:new_password_confirmation => 'hello2'
assert_response :success
assert_template 'password'
assert_tag :tag => "div", :attributes => { :class => "errorExplanation" }
assert_error_tag :content => /Password doesn't match confirmation/
# wrong password
post :password, :password => 'wrongpassword',