Ensure flash messages work with Devise::TestHelper, closes #327

This commit is contained in:
José Valim 2010-06-23 11:10:23 +02:00
parent b2c2cb272f
commit a39312e26b
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class TestHelpersTest < ActionController::TestCase
test "redirects if attempting to access a page unauthenticated" do
get :index
assert_redirected_to new_user_session_path
assert_equal "You need to sign in or sign up before continuing.", flash[:alert]
end
test "redirects if attempting to access a page with a unconfirmed account" do