class Rspec::Generators::ControllerGenerator

def generate_view_specs

def generate_view_specs
  return if actions.empty? && behavior == :invoke
  return unless options[:view_specs] && options[:template_engine]
  empty_directory File.join("spec", "views", file_path)
  actions.each do |action|
    @action = action
    template 'view_spec.rb',
             target_path('views', file_path, "#{@action}.html.#{options[:template_engine]}_spec.rb")
  end
end