Sha256: b401c9cac6e2ee0f8b7c91deef5e5cb69e3619c50b361143e9866f8d3952170c
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Rubysmith module Builders module RSpec # Builds RSpec spec helper for project skeleton. class Helper < Abstract using Refinements::Struct def call return configuration unless configuration.build_rspec builder.call(configuration.merge(template_path: "%project_name%/spec/spec_helper.rb.erb")) .render .replace(/\A\n/, "") .replace("\n\n\n", "\n\n") configuration end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-6.10.0 | lib/rubysmith/builders/rspec/helper.rb |
rubysmith-6.9.0 | lib/rubysmith/builders/rspec/helper.rb |