Sha256: 9e688a469cfbbfad70d47a7f6f182bd3a4cdfc275dbe3b985a562fa623411359
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Gemsmith module Builders module RSpec # Builds RSpec spec helper for project skeleton. class Helper < Rubysmith::Builders::RSpec::Helper using Refinements::Struct def call return false unless settings.build_rspec && settings.build_cli super builder.call(settings.merge(template_path: "%project_name%/spec/spec_helper.rb.erb")) .replace("%r(^/spec/)", "%r((.+/container\\.rb|^/spec/))") true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-22.0.0 | lib/gemsmith/builders/rspec/helper.rb |