[rspec-users] mock out render call in helper

Chris Hoffman bosshoff at gmail.com
Fri Apr 13 07:55:31 EDT 2007


Hello,
  Does someone know where I can hook in to mock out a render call from
a helper in Rails?  I know I can do this in view specs with the
following

@controller.template.stub!(:render)

but template doesn't seem to be attached to @controller in a helper
context.  Thanks.

-Chris


More information about the rspec-users mailing list