search for: testsess

Displaying 12 results from an estimated 12 matches for "testsess".

Did you mean: testmess
2006 Jun 16
0
rake spec controller test output hideus.
...served</span>\n</div><!-- end of bttmbar -->\n\n</body>\n</html>", @headers={"Status"=>"200 OK", "cookie"=>[], "Cache-Control"=>"no-cache"}, @redirected_to=nil, @assigns=[], @session=#<ActionController::TestSession:0x24d6a74 @attributes={"flash"=>{:warning=>"Signup unsuccessful"}}>, @template=#<#<Class:0x251ee78>:0x24d4f80 @headers={"Status"=>"200 OK", "cookie"=>[], "Cache-Control"=>"no-cache"}, @template_class...
2010 Aug 17
1
DetachedEval Issues
...detachedEval("source(\"hdlc_processing.r\")");delete rc; rc = new Rconnection(theSession);rc->connect(); Owing to firewall issues I am having to make use of an ssh tunnel for the connection, hence the manual override of the port number.Thus I am in fact using this: Rsession* testSession = new Rsession(theSession->host(),6311,theSession->key());rc = new Rconnection(testSession);rc->connect(); This results in the following being outputted on the Rserve debug side. session: resuming session, waiting for connections.connection accepted.sending ID string. header read result...
2006 Nov 08
1
controller.session not same as session?
...t > should unset :user in session'' > 1 should be nil > ./spec/controllers/account_controller_spec.rb:149:in `should > unset :user in session'' > > Throwing a breakpoint in and examining the two reveals: > > >> session > => #<ActionController::TestSession:0x3a8e794 @attributes={:user=>1, > "flash"=>{}}> > >> controller.session > => #<ActionController::TestSession:0x3a797e0 @attributes= > {:return_to=>nil, "flash"=>{:notice=>"You have been logged out."}}> > >> &g...
2009 Feb 19
1
Switching to ActiveRecord Session Store
I''m having a problem switching from cookie sessions (the default) to active record sessions. I''ve created the sessions table via the rake task, uncommented the line config.action_controller.session_store = :active_record_store in my environment.rb file, cleared out my browsers cookies, restarted the server (natch), but still the it''s using cookie_store instead of
2006 Jun 06
14
How can I set the session in a functional test?
Hey :) I need to simulate a login in my functional test, otherwise I can''t GET nor POST to the action. I need to set the session key "logged_in_user_id". I tried this inside the setup() method: session[''logged_in_user_id''] = 1 But that throws: TypeError: can''t convert String into Integer Any ideas? Thanks, Rob -------------- next part
2006 Dec 31
2
what''s with the response.should_be_xxxx stacktrace?
...@headers={"Status"=>"302 Found", "cookie"=>[], "Content-Type"=>"text/html; charset=utf-8", "Cache-Control"=>"no-cache", "location"=>"http://test.host/carts/1"}, @session=#<ActionController::TestSession:0x390466c @attributes={"flash"=>{}, :cart=>{}}>> should be success nil My question is, is this intended, or just a side-effect of using should_be_xxxx? In which case, particularly regarding the "artificial sugar causes cancer", the response should_be really coul...
2006 Nov 10
3
Specifying views
...t; {:name => ''account[name]'', :type => ''text''} end end and when I run that, I get: 1) RuntimeError in ''The new account form should have an account name'' Deprecating @session, but it''s already set to #<ActionController::TestSession:0x3c46870 @attributes={"flash"=>{}}>! Use the session= writer method instead of setting @session directly. /Users/brandon/projects/finances/config/../vendor/rails/actionpack/ lib/action_controller/base.rb:1049:in `assign_deprecated_shortcuts'' /Users/brandon/projects/f...
2006 Mar 15
2
Session (stored in db) not working in testing mode
...npack-1.11.2/lib/action_controller/depr ecated_assertions.rb:23:in `assert_session_has'' ./functional/../test_helper.rb:34:in `login'' functional/ad_controller_test.rb:49:in `test_authorized_new'']: <:user_id> is not in the session <#<ActionController::TestSession:0x31d2198 @attributes={"flash"=>{}}>> Have I overlooked something? Kind regards, Nick -- Posted via http://www.ruby-forum.com/.
2006 May 03
0
Accessing the params hash in a functional test not working
...erControllerTest) [c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1 /lib/action_controller/depr ecated_assertions.rb:23:in `assert_session_has'' ./test/functional/user_controller_test.rb:25:in `test_auth_bob'']: <:user> is not in the session <#<ActionController::TestSession:0x36a8380 @attributes= {:user=>nil, :debug_params=>{"action"=>"login"}, "flash"=> {:error=>"The email address and/or password you entered is invalid."}, :return_to=>nil}>> I am stumped figuring out why the params a...
2006 Mar 25
0
Session not working in testing mode
.... model is a method available when using active_record_store. This all works beautifully, at least in development mode. However, the trouble starts when I run a functional test. Everything blows up. The error I get is: NoMethodError (undefined method `model'' for #<ActionController::TestSession:0x7019578>) So it appears to me that the method model is defined in development but not in testing mode. But I cann''t find a solution for this problem. Any help is appreciated. Kind regards, Nick -- Posted via http://www.ruby-forum.com/.
2007 Feb 21
1
setting session data from a post
...tement 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(#<LinksController:0x2481fec>):002:0> session[:user] => nil What I don''t understand is why I can''t access the attributes that are listed in the session obj...
2005 May 18
10
Salted Login Generator issues
Hello all, I''ve just installed and begun to integrate the salted login generator. So far I''m very impressed, though I''ve hit a few snags along the way. Unfortunately, I''ve met the first one that I haven''t been able to resolve on my own. When I hit the login action, I get errors in my log files. The specific error with trace is included below.