[rspec-users] mocking out helper method in a view spec

David Chelimsky dchelimsky at gmail.com
Thu May 24 15:15:48 EDT 2007


On 5/24/07, Kyle Hargraves <philodespotos at gmail.com> wrote:
> You can stub/mock methods on @controller.template.

Actually - you can access that directly if you're on 1.0.2 through the
#template method (which returns @controller.template)

>
> Kyle
>
> On 5/24/07, Joe Van Dyk <joevandyk at gmail.com> wrote:
> > Hi,
> >
> > How can I mock or stub out a helper method that's being called in a
> > view that's described by a view spec?
> >
> > Joe
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list