class Rspec::Generators::RegulationGenerator

Public Instance Methods

create_spec_file() click to toggle source
# 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