class Rspec::Generators::ScaffoldGenerator
def generate_controller_spec
def generate_controller_spec return unless options[:controller_specs] if options[:api] template 'api_controller_spec.rb', template_file(folder: 'controllers', suffix: '_controller') else template 'controller_spec.rb', template_file(folder: 'controllers', suffix: '_controller') end end