search for: sessioncontroller

Displaying 6 results from an estimated 6 matches for "sessioncontroller".

Did you mean: sessionscontroller
2007 May 17
2
Stubbing authentication across multiple controllers
...(username, password = "foo", id = "1") user = mock(username) user.stub!(:id).and_return(id) user.stub!(:to_param).and_return(id) User.should_receive(:authenticate).with(username, password).and_return(true) #Here it fails if included in a controller that isn''t SessionController post(:create, :login => username, :password => password) puts response.inspect controller.send :current_user=, user end _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt...
2010 Feb 20
23
Rails 3 possible bug in Routing
...n'' => ''session#new'' post ''login'' => ''session#create'', :as => :login GET /login works fine: Started GET "/login" for 127.0.0.1 at 2010-02-20 17:45:49 SQL (0.3ms) SET SQL_AUTO_IS_NULL=0 Processing by SessionController#new as HTML Rendered session/new.html.haml within layouts/application.html.haml (77.9ms) Completed in 85ms (Views: 84.1ms | ActiveRecord: 0.2ms) with 200 However POST /login gives the following error: Started POST "/login" for 127.0.0.1 at 2010-02-20 17:45:58 SQL (0.3ms) SET SQL_AUT...
2007 Jul 29
16
Mongrel stops responding after period of inactivity
...s in the Rails log). Nothing untoward is in the Mongrel log. If you try and visit the application, the request times out with a 502 Proxy Error. Apache is still up and running and serving static files without a problem, but the following is present in the Apache error log (from trying to hit the SessionController, identified by / sessions) which may provide a clue: [Sun Jul 29 08:37:36 2007] [error] proxy: error reading status line from remote server 127.0.0.1 [Sun Jul 29 08:37:36 2007] [error] proxy: Error reading from remote server returned by /sessions Restarting the Mongrel cluster resolves th...
2007 Jul 29
4
Mongrel stops responding after period of inactivity
...s in the Rails log). Nothing untoward is in the Mongrel log. If you try and visit the application, the request times out with a 502 Proxy Error. Apache is still up and running and serving static files without a problem, but the following is present in the Apache error log (from trying to hit the SessionController, identified by / sessions) which may provide a clue: [Sun Jul 29 08:37:36 2007] [error] proxy: error reading status line from remote server 127.0.0.1 [Sun Jul 29 08:37:36 2007] [error] proxy: Error reading from remote server returned by /sessions Restarting the Mongrel cluster resolves th...
2007 Oct 16
2
Named routes in controller not working?
I have some "redirect_to"s using named routes in a controller that work fine in the browser, but choke my tests. The route in question is "new_session" and comes from a "map.resource :session, :controller => :session" route mapping. If I replace the named route in the controller with controller/action the tests run just fine, but for some reason it doesn''t
2007 May 26
11
RSpec
Hi RSpec Mailing list, I''m new to RSpec and I am trying to get it running with the caboo.se sample rails app. I installed the current version of rspec with rspec_on_rails I tried to run rake spec but received: 330-07:~/desktop/restful_auth_rspec/vendor multimedia$ rake spec (in /Users/multimedia/Desktop/restful_auth_rspec)