[rspec-users] Can't get running a simple rspec test: assigns is always nil

Alexander Seidl lists at ruby-forum.com
Wed Oct 21 13:07:58 EDT 2009

Pat Maddox wrote:
> On Wed, Oct 21, 2009 at 3:58 AM, Alexander Seidl <lists at ruby-forum.com> 
> wrote:
>> hi pat,
>> thats all of the code that will be executed in
>> categories_controller_spec.rb. the rest is commented out.
> Looks like this may be the same issue as the other thread.  You didn't
> show all the code, because there's an unknown UserController :)  I'm
> going to stop responding in this thread, and focus on the other one,
> because I suspect that both problems you're experiencing have the same
> root cause.
> Pat

You are completely right! There IS a before_filter in UserController, 
which executes this method before every action:


But why does this filter prevents the index action from being executed?

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list