Sha256: 44c7eaeacdc1535a4f699adc6f4dc99480f8bc0578949583d646865a8a51c8c6

Contents?: true

Size: 509 Bytes

Versions: 11

Compression:

Stored size: 509 Bytes

Contents

require_relative "project_generator"

module Foobara
  module Generators
    module EmptyRubyProjectGenerator
      module Generators
        class InitialSpecGenerator < ProjectGenerator
          def template_path
            ["spec", "initial_spec.rb.erb"]
          end

          def target_path
            *path, file = full_project_path.map { |part| Util.underscore(part) }

            file = "#{file}_spec.rb"

            ["spec", *path, file]
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foobara-empty-ruby-project-generator-0.0.11 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.10 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.9 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.8 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.7 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.6 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.5 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.4 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.3 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.2 src/generators/initial_spec_generator.rb
foobara-empty-ruby-project-generator-0.0.1 src/generators/initial_spec_generator.rb