module RSpec::Rails::ViewExampleGroup::InstanceMethods

def view

end
end
...
render
view.stub(:foo) { "foo" }
it "shows all the widgets" do
describe "widgets/new.html.erb" do

Use this to stub methods _before_ calling +render+.
The instance of +ActionView::Base+ that is used to render the template.
def view
  _view
end