Module: Stationed::Generators::Plugins::Rspec
- Included in:
- AppGenerator
- Defined in:
- lib/stationed/generators/plugins/rspec.rb
Instance Method Summary collapse
Instance Method Details
#finish_template ⇒ Object
5 6 7 8 9 10 |
# File 'lib/stationed/generators/plugins/rspec.rb', line 5 def finish_template gem 'simplecov', group: :test gem 'rspec-rails', group: [:development, :test] copy_file 'simplecov', '.simplecov' super end |
#run_bundle ⇒ Object
12 13 14 15 16 17 |
# File 'lib/stationed/generators/plugins/rspec.rb', line 12 def run_bundle super generate 'rspec:install' remove_file 'spec/spec_helper.rb' copy_file 'spec_helper.rb', 'spec/spec_helper.rb' end |