Displaying 1 result from an estimated 1 matches for "her_password".
Did you mean:
user_password
2006 May 10
0
Ezra''s acl_system2 and flash not getting populated in functional tests
...]
def test_redirect_not_authenticated_user
ACTIONS.each do |a|
get a
assert_redirected_to :controller => ''account'', :action => ''login''
end
end
def test_redirect_not_admin
assert not_admin = User.authenticate("not_admin", "her_password")
ACTIONS.each do |a|
get a, {}, { :user => route_admin }, nil
assert_redirected_to :controller => "account", :action => "login"
#assert flash.has_key?(:message), "No flash after action #{a}"
#assert_equal "You must log in as a...