Sha256: b03d3a67acdab37f93bd19b8defd6de9bcde935deee32baf39ee5012ece812e4
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true module Specimen module Generator class RSpecProjectGenerator < ProjectGeneratorBase DEFAULT_DIRECTORIES = %w[spec/examples spec/support].freeze TEMPLATES_DIR = 'rspec/templates' TEMPLATES = %w[ spec/examples/example_spec.rb spec/spec_helper.rb config/.rspec ].freeze def execute! perform end no_commands do def perform create_directories(DEFAULT_DIRECTORIES) create_files_by_templates(TEMPLATES_DIR, TEMPLATES) true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
specimen-0.0.3.alpha | lib/specimen/generator/rspec/rspec_project_generator.rb |
specimen-0.0.2.alpha | lib/specimen/generator/rspec/rspec_project_generator.rb |