Class: Rspec::Generators::IntegrationGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_integration_fileObject



10
11
12
13
# File 'lib/generators/saki/integration_generator.rb', line 10

def create_integration_file
  template 'full_integration_spec.rb',
           File.join('spec/acceptance', class_path, "#{table_name}_spec.rb")
end

#resource_nameObject



14
15
16
# File 'lib/generators/saki/integration_generator.rb', line 14

def resource_name
  file_name.tableize.singularize
end