Sha256: 86be5024f21ed2a3392d3efd466e8c64a47f3d3b3c848d8208313b4e53ae6f7b

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Hanamismith
  module Builders
    module RSpec
      # Builds project skeleton RSpec helper.
      class Hanami < Rubysmith::Builders::Abstract
        using Refinements::Struct

        def call
          return configuration unless configuration.build_rspec

          path = "%project_name%/spec/hanami_helper.rb.erb"
          builder.call(configuration.merge(template_path: path)).render

          configuration
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanamismith-0.38.0 lib/hanamismith/builders/rspec/hanami.rb
hanamismith-0.37.0 lib/hanamismith/builders/rspec/hanami.rb