On Tue, Apr 29, 2008 at 9:48 AM, Matt McNeil <[EMAIL PROTECTED]> wrote:
> describe ApplicationController do
> class FooController < ApplicationController
> def index; render :text => "foo"; end
> end
> controller_name :foo
>
> it "should turn off session management for requests made by
Hi,
(This is my first post after months of appreciative lurking...)
I'm trying to spec the following conditional controller macro:
class ApplicationController < ActionController::Base
# turn off session management for robots
session :off, :if => lambda {|req| req.user_agent =~ /(Google|Slur