[rspec-users] ApplicationController helper methods in view specs?

David Chelimsky dchelimsky at gmail.com
Mon Jun 28 08:48:33 EDT 2010

On Jun 28, 2010, at 12:22 AM, Alex Crichton wrote:
> I've got some helper methods in my ApplicationController which the
> views use. In the view specs the methods are all undefined, however.
> Is this intended and is there some setting I need to use to get the
> methods included?

View specs don't know anything about your controllers, so if you're defining helpers in controllers you have to stub them in view specs.

Why not put them a helper instead?

More information about the rspec-users mailing list