[rspec-users] get to a different controller
mailinglists at patmaddox.com
Tue Jan 5 15:12:38 EST 2010
The spec has Admin::BaseController as the described type. So of course it's going to test against that. If you want to test a different class, you need to describe that instead!
On Jan 5, 2010, at 9:36 AM, Phillip Koebbe wrote:
> I'm trying to implement a base controller that other controllers descend from, and am having a bit of difficulty in testing the sole "feature" of the base controller.
> In the "not redirecting when user is an admin" context, I keep getting an error that "no action responded to <whatever I try>". Obviously, there are no actions in this controller, nor should there be. I want to hit an action in a descendant controller and make sure that it goes through.
> How do I do that?
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users