Class: RailsAppGenerator::AddOns::Rspec
- Inherits:
-
RailsAppGenerator::Addon
- Object
- Rails::Generators::Base
- RailsAppGenerator::Addon
- RailsAppGenerator::AddOns::Rspec
- Defined in:
- lib/rails_app_generator/addons/rspec.rb
Overview
Add Rspec to rails application
Instance Attribute Summary
Attributes inherited from RailsAppGenerator::Addon
#context, #dependencies, #gem_entries
Instance Method Summary collapse
Methods inherited from RailsAppGenerator::Addon
addon_name, dependencies, depends_on, gem, gem_entries, #initialize, required_gem, reset_gem_entries
Constructor Details
This class inherits a constructor from RailsAppGenerator::Addon
Instance Method Details
#apply ⇒ Object
16 17 18 19 20 |
# File 'lib/rails_app_generator/addons/rspec.rb', line 16 def apply create_file('.rspec', '--require spec_helper') template('spec/rails_helper.rb') template('spec/spec_helper.rb') end |