Displaying 1 result from an estimated 1 matches for "idm_local".
Did you mean:
dim_local
2007 Feb 21
1
setting session data from a post
...ion data.
def test_login_loads_from_post_session
post :new, nil, { :user => 7 }
session = assigns(:session)
assert_equal 7, session[:user]
end
My assert statement seems to be failing because my session is not
showing me as being logged in.
Executing break point at
/Users/intention/work/idm_local/config/../lib/authenticated_system.rb:52
in `login_required''
irb(#<LinksController:0x2481fec>):001:0> session
=> #<ActionController::TestSession:0x24805fc @attributes={:user=>7,
"flash"=>{}}, saved_attributesnil, session_id""
irb(#<LinksControlle...