Sha256: 1a4fb7e31886cd04c1f3a0ac841765e5017c93c671ee9e00589ce351e6efa17d
Contents?: true
Size: 955 Bytes
Versions: 1
Compression:
Stored size: 955 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}/%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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-5.4.0 | lib/gemsmith/skeletons/rspec_skeleton.rb |