Class: Gemsmith::Skeletons::RspecSkeleton
- Inherits:
-
BaseSkeleton
- Object
- BaseSkeleton
- Gemsmith::Skeletons::RspecSkeleton
- Defined in:
- lib/gemsmith/skeletons/rspec_skeleton.rb
Overview
Configures RSpec support.
Instance Method Summary collapse
Methods inherited from BaseSkeleton
Constructor Details
This class inherits a constructor from Gemsmith::Skeletons::BaseSkeleton
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/gemsmith/skeletons/rspec_skeleton.rb', line 5 def create return unless configuration.create_rspec? cli.template "%gem_name%/lib/tasks/rspec.rake.tt", configuration.to_h cli.template "#{rspec_root}/spec_helper.rb.tt", configuration.to_h cli.template "#{rspec_root}/lib/%gem_name%/%gem_name%_spec.rb.tt", configuration.to_h cli.template "#{rspec_root}/support/kit/default_config.rb.tt", configuration.to_h cli.template "#{rspec_root}/support/kit/stderr.rb.tt", configuration.to_h cli.template "#{rspec_root}/support/kit/stdout.rb.tt", configuration.to_h cli.template "#{rspec_root}/support/kit/temp_dir.rb.tt", configuration.to_h end |