Sha256: c8c3f0efd2ecc51d1c9c5cc4cfaa1ff33c841517d428f5f01cae4132888b0ea0
Contents?: true
Size: 785 Bytes
Versions: 6
Compression:
Stored size: 785 Bytes
Contents
module Stationed module Generators module Plugins module Rspec def self.prepended(base) base.class_option :rspec, type: :boolean, default: true, desc: 'Generate configuration for Rspec with Simplecov' end def finish_template return super unless options[:rspec] gem 'simplecov', group: :test gem 'rspec-rails', group: [:development, :test] copy_file 'simplecov', '.simplecov' super end def run_bundle super return unless options[:rspec] generate 'rspec:install' remove_file 'spec/spec_helper.rb' copy_file 'spec_helper.rb', 'spec/spec_helper.rb' end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems