module RSpec::Rails::ViewSpecMethods

def remove_from(klass)

Removes methods `extra_params=` and `extra_params` from the indicated class.
def remove_from(klass)
  klass.module_exec do
    undef extra_params= if klass.method_defined?(:extra_params=)
    undef extra_params  if klass.method_defined?(:extra_params)
  end
end