[rspec-users] Stubbing #javascript_include_tag in a helper spec

Nick Hoffman nick at deadorange.com
Fri Oct 31 19:13:19 EDT 2008

On 2008-10-31, at 18:50, David Chelimsky wrote:
> Assuming that you intend to have a helper method that calls out to
> javascript_include_tag, then:
>  helper.should_receive :javascript_include_tag
> Let us know if that works for you.

Hah, so easy. Why didn't I think of that?  =P  Thanks, mate!

More information about the rspec-users mailing list