Re: [rspec-users] Spec'ing controller macros

2008-04-29 Thread Pat Maddox
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

[rspec-users] Spec'ing controller macros

2008-04-29 Thread Matt McNeil
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