Class: FlavorGem::Generate::Rspec

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/flavor_gem/rspec.rb

Instance Method Summary collapse

Methods included from Thor::Actions

#append_code_to_file, #append_template_to_file, #file_include_code?, #file_include_template?, #format_quote_to_file, #gem_class_name, #gem_name, #normalize_code, #template_content, #template_file_name

Instance Method Details

#append_rakefileObject



8
9
10
# File 'lib/flavor_gem/rspec.rb', line 8

def append_rakefile
  append_template_to_file "Rakefile", "rspec.rake"
end

#create_helperObject



12
13
14
15
16
# File 'lib/flavor_gem/rspec.rb', line 12

def create_helper
  code = template_content "helper.rb"
  code.gsub! "@gem_name", gem_name
  append_code_to_file "spec/helper.rb", code
end

#inject_rspec_gemfileObject

TODO



19
20
# File 'lib/flavor_gem/rspec.rb', line 19

def inject_rspec_gemfile
end