Method: Rspec::Generators::RegulationGenerator#create_spec_file

Defined in:
lib/generators/rspec/regulation/regulation_generator.rb

#create_spec_fileObject



8
9
10
# File 'lib/generators/rspec/regulation/regulation_generator.rb', line 8

def create_spec_file
  template "regulation_spec.rb.erb", File.join("spec/regulations/", class_path, "#{file_name}_regulation_spec.rb")
end