Sha256: 1e2b08e9e4a1d5c8bfcdab7f9a862d5bfb0a24821c7f702de09ae5b726c89188
Contents?: true
Size: 970 Bytes
Versions: 2
Compression:
Stored size: 970 Bytes
Contents
module Gemsmith module Skeletons # Configures RSpec support. class RspecSkeleton < BaseSkeleton def enabled? cli.template_options.key?(:rspec) && cli.template_options[:rspec] end def create return unless enabled? cli.template "%gem_name%/lib/%gem_name%/tasks/rspec.rake.tt", cli.template_options cli.template "#{rspec_root}/spec_helper.rb.tt", cli.template_options cli.template "#{rspec_root}/lib/%gem_name%/%gem_name%_spec.rb.tt", cli.template_options cli.template "#{rspec_root}/support/kit/default_config.rb.tt", cli.template_options cli.template "#{rspec_root}/support/kit/stderr.rb.tt", cli.template_options cli.template "#{rspec_root}/support/kit/stdout.rb.tt", cli.template_options cli.template "#{rspec_root}/support/kit/temp_dir.rb.tt", cli.template_options end private def rspec_root "%gem_name%/spec" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-5.6.0 | lib/gemsmith/skeletons/rspec_skeleton.rb |
gemsmith-5.5.0 | lib/gemsmith/skeletons/rspec_skeleton.rb |