search for: route_admin

Displaying 1 result from an estimated 1 matches for "route_admin".

2006 May 10
0
Ezra''s acl_system2 and flash not getting populated in functional tests
...et 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 an administrator.", flash [:message] end end The flash assertio...