I figured it out.
By doing this session sanity check in the spec (as recommended by
dchelimsky):
sess = session
get 'index'
sess.should equal(session)
I was able to see that a 'Please log in' redirect was preventing index from
getting called.
Chad
cnantais wrote:
>
> In my rspe
In my rspec_on_rails controlle rspec, I have this:
require File.dirname(__FILE__) + '/../spec_helper'
describe FooController, "with a foo" do
it "should be false" do
get 'index'
assigns[:foo].should be_false
end
end
In my controller I have this:
class FooController < ApplicationCon