Class: Rspec::Generators::QueryGenerator

Inherits:
ARQO::Generators::NamedBase show all
Defined in:
lib/generators/rspec/query_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_model_query_specObject



10
11
12
13
# File 'lib/generators/rspec/query_generator.rb', line 10

def create_model_query_spec
  template_file = File.join('spec/queries', class_path, "#{file_name}_query_spec.rb")
  template 'query_spec.rb.erb', template_file
end