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