Sha256: 5d320d545df21681076d00413c4e09eccf5ae9088674705d9c491881d4f86bfc
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 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::Abstract using Refinements::Struct def call return configuration unless configuration.build_rspec && configuration.build_cli builder.call(configuration.merge(template_path: "%project_name%/spec/spec_helper.rb.erb")) .touch .replace("%r(^/spec/)", "%r((.+/container\\.rb|^/spec/))") configuration end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-21.10.0 | lib/gemsmith/builders/rspec/helper.rb |
gemsmith-21.9.0 | lib/gemsmith/builders/rspec/helper.rb |