Method: Spec#create_source_file

Defined in:
lib/erebus/generators/spec.rb

#create_source_fileObject



14
15
16
17
18
19
20
21
# File 'lib/erebus/generators/spec.rb', line 14

def create_source_file
  Spec.validate_project
  if(options[:use_alt])
    template "templates/spec_alt.erb", "spec/#{file_name}_spec.#{ext}"
  else
    template "templates/spec.erb", "spec/#{file_name}_spec.#{ext}"
  end
end