[rspec-users] Stub a controllers helper_method in a view template helper spec

Kai Schlamp kai.schlamp at googlemail.com
Mon Mar 21 12:15:03 EDT 2011

Ok, the tests now runs fine, but unfortunately the site itself doesn't
work anymore.
When the view gets rendered I get the following error:

undefined local variable or method `helper' for #<#<Class:0xb66566a0>:

> > module ApplicationHelper
> >  def order_link(column, title = nil)
> >    fetch_param(:order)
> Change this ^^ to this:
>   helper.fetch_param(:order)

More information about the rspec-users mailing list