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
Kyle Hargraves
2007-May-24 19:13 UTC
[rspec-users] mocking out helper method in a view spec
You can stub/mock methods on @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 >
David Chelimsky
2007-May-24 19:15 UTC
[rspec-users] mocking out helper method in a view spec
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 >