Class: Rspec::Generators::LeointegrationGenerator

Inherits:
IntegrationGenerator
  • Object
show all
Includes:
Leonardo::Leosca, Leonardo::Nested, Leonardo::Nested::Test
Defined in:
lib/generators/rspec/leointegration/leointegration_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_request_specObject



20
21
22
23
24
25
# File 'lib/generators/rspec/leointegration/leointegration_generator.rb', line 20

def generate_request_spec
  return unless options[:request_specs]

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