Sha256: b166056705cbfcccb95119bbd4a415a80f169dfeed425278c6c9ecae62635ea4

Contents?: true

Size: 654 Bytes

Versions: 2

Compression:

Stored size: 654 Bytes

Contents

module Gemsmith
  module Skeletons
    class RspecSkeleton < BaseSkeleton
      def create_files
        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/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

2 entries across 2 versions & 1 rubygems

Version Path
gemsmith-5.3.0 lib/gemsmith/skeletons/rspec_skeleton.rb
gemsmith-5.2.0 lib/gemsmith/skeletons/rspec_skeleton.rb