diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-26 18:07:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-26 18:07:13 +0000 |
commit | 7c568cccafeb2f1577349419f758478362bf3c97 (patch) | |
tree | 41ebbb213451ca2bda816bd21bc90a77c8cfad05 /test/functional/my_controller_test.rb | |
parent | 9c264a7e66cbc64251e48a89eb8a0c37e556e491 (diff) | |
download | redmine-7c568cccafeb2f1577349419f758478362bf3c97.tar.gz redmine-7c568cccafeb2f1577349419f758478362bf3c97.zip |
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
Diffstat (limited to 'test/functional/my_controller_test.rb')
-rw-r--r-- | test/functional/my_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index cac6a14ad..a89af91a2 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -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', |