Sha256: 43d2191f8474c8875d7f9a5a9eb96c8765e31792dbdb8d1a5bef193f09fc34b8

Contents?: true

Size: 800 Bytes

Versions: 3

Compression:

Stored size: 800 Bytes

Contents

module Gemsmith
  module Skeletons
    class RspecSkeleton < BaseSkeleton
      def create_files
        template "%gem_name%/.rspec.tt", template_options
        template "#{rspec_root}/spec_helper.rb.tt", template_options
        template "#{rspec_root}/%gem_name%_spec.rb.tt", template_options
        template "#{rspec_root}/support/kit/default_config.rb.tt", template_options
        template "#{rspec_root}/support/kit/garbage_collection.rb.tt", template_options
        template "#{rspec_root}/support/kit/stderr.rb.tt", template_options
        template "#{rspec_root}/support/kit/stdout.rb.tt", template_options
        template "#{rspec_root}/support/kit/temp_dir.rb.tt", template_options
      end

      private

      def rspec_root
        "%gem_name%/spec"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemsmith-5.0.0 lib/gemsmith/skeletons/rspec_skeleton.rb
gemsmith-4.3.0 lib/gemsmith/skeletons/rspec_skeleton.rb
gemsmith-4.2.0 lib/gemsmith/skeletons/rspec_skeleton.rb