Sha256: 1e4e8ff64792225c9e9349a421a16a5dc01e20328de24d426ea33aae75f4218b
Contents?: true
Size: 891 Bytes
Versions: 8
Compression:
Stored size: 891 Bytes
Contents
# frozen_string_literal: true module Gemsmith module Skeletons # Configures RSpec support. class RspecSkeleton < BaseSkeleton 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 private def rspec_root "%gem_name%/spec" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems