Sha256: 9d5c3042f256c6427c6fa1affd990d563bac68e309cd4e691cb4efea9e8dcd65
Contents?: true
Size: 752 Bytes
Versions: 29
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Hanamismith module Builders module RSpec # Builds project skeleton RSpec helper. class Hanami using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end 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 private attr_reader :configuration, :builder end end end end
Version data entries
29 entries across 29 versions & 1 rubygems