[rspec-users] get to a different controller

Phillip Koebbe phillipkoebbe at gmail.com
Tue Jan 5 15:53:50 EST 2010

> Subclass it in your spec with
> class TestController < Admin::BaseController
>    def index
>    end
> end
> ...then use the TestController in your tests for Admin::BaseController.
> That might mean you'll need to add special routing for TestController 
> which is annoying but can be done.

Thanks, Matt. Between your post and David's, I'll see if I can put it 
all together.


More information about the rspec-users mailing list