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


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

def generate_request_spec
  return unless options[:request_specs]

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