module RSpec::Rails::ViewSpecMethods

def extra_params

# => { :id => 4 }
controller.extra_params
# After the before in the above example:

@example

Use to read extra parameters that are set in the view spec.
def extra_params
  @extra_params ||= {}
  @extra_params.dup.freeze
end