module RSpec::Rails::ViewExampleGroup::InstanceMethods
def view
end
...
render
view.stub(:foo) { "foo" }
it "shows all the widgets" do
describe "widgets/new.html.erb" do
on the view:
Use this before the +render+ call to stub any methods you want to stub
The instance of ActionView::Base that is used to render the template.
def view _view end