[rspec-users] controller code doesn't seem to be called within rspec test

Pat Maddox pat.maddox at gmail.com
Wed Oct 21 11:28:19 EDT 2009

On Wed, Oct 21, 2009 at 6:56 AM, Alexander Seidl <lists at ruby-forum.com> wrote:
> I started a new test: Have a look at my new code:
> http://pastie.org/663455
> 1) The categories_controller is NOT called from the test!
> 2) I created another example with a message_controller and associated
> tests. There, the controller IS called!
> You can see that, because the puts statement produces output in 2), but
> not in 1).
> Could the reason for this be the fact, that User::CategoriesController
> inherits from UserController??

Paste UserController as well.  If it has a before_filter in there that
prevents index from executing, that could be the source of the


More information about the rspec-users mailing list