Class: Rspec::Generators::IntegrationGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/rspec/integration/integration_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#generate_request_specObject



10
11
12
13
14
15
# File 'lib/generators/rspec/integration/integration_generator.rb', line 10

def generate_request_spec
  return unless options[:request_specs]

  template 'request_spec.rb',
           File.join('spec/requests', class_path, "#{table_name}_spec.rb")
end