OSDN Git Service

Fixed my_controller_test.rb (errors are now in flash[:error])
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Aug 2007 10:04:44 +0000 (10:04 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Aug 2007 10:04:44 +0000 (10:04 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@606 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/my_controller_test.rb

index 5b714a6..a53991a 100644 (file)
@@ -77,7 +77,7 @@ class MyControllerTest < Test::Unit::TestCase
                            :new_password => 'hello',
                            :new_password_confirmation => 'hello'
     assert_redirected_to 'my/account'
-    assert_equal 'Wrong password', flash[:notice]
+    assert_equal 'Wrong password', flash[:error]
     
     # good password
     post :change_password, :password => 'jsmith',