Sha256: 506a152ae88cfbfb80b8cef1d4fd868b0be5c14fa109075ba37ecbb5f2922de6
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module RSpec # Builds project skeleton RSpec application database support. class Factory < Rubysmith::Builders::Abstract using Refinements::Struct def call return configuration unless configuration.build_rspec path = "%project_name%/spec/support/factory.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/factory.rb |
hanamismith-0.37.0 | lib/hanamismith/builders/rspec/factory.rb |