[rspec-users] How do I stub a view in rspec-2
trey at 12spokes.com
Tue Jun 8 10:30:32 EDT 2010
I'm in the process of upgrading an app to Rails 3/Rspec 2. I see that
stubbing a view helper method has changed in Rspec 2. It looks like
instead of doing template.stub!, we're now supposed to do view.stub!,
but I can't seem to get this to work on beta 10. I get an "undefined
local variable or method `view' for
I see that in this commit (http://github.com/rspec/rspec-rails/commit/
David removed the view
method, but I can't figure out what it was replaced with. Something
I'm on rails 3.0.0.beta3.
Any idea what I'm missing?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users