module RSpec::Rails::ViewSpecMethods

def extra_params=(hash)

end
controller.extra_params = { :id => widget.id }
widget = Widget.create!(:name => "slicer")
before do
# In "spec/views/widgets/show.html.erb_spec.rb":

@example

would require.
Set any extra parameters that rendering a URL for this view
def extra_params=(hash)
  @extra_params = hash
  request.path =
    ViewPathBuilder.new(::Rails.application.routes).path_for(
      extra_params.merge(request.path_parameters)
    )
end