Re: [rspec-users] rspec_on_rails: controller method not getting called

2007-09-27 Thread cnantais
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

[rspec-users] rspec_on_rails: controller method not getting called

2007-09-27 Thread cnantais
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