Class: Rspec::Generators::Operations::SchemaGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Operations::Base::Generators::BaseGenerator
Defined in:
lib/generators/rspec/operations/schema_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_filesObject



19
20
21
22
23
24
# File 'lib/generators/rspec/operations/schema_generator.rb', line 19

def generate_files
  super

  template "schema_spec.rb.erb", "#{root_test_file_path}/operations/#{plural_name}/#{verb}/schema_spec.rb"
  template "base/schema_spec.rb.erb", "#{root_test_file_path}/operations/#{plural_name}/base/schema_spec.rb"
end