Sha256: 87185c300101071c0e05b1e202f3c52d6c11b8d33c1cf630baa2ad02c10f9bb7
Contents?: true
Size: 559 Bytes
Versions: 18
Compression:
Stored size: 559 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module RSpec # Builds project skeleton RSpec application shared context. class ApplicationSharedContext < Rubysmith::Builders::Abstract using Refinements::Struct def call return false unless settings.build_rspec path = "%project_name%/spec/support/shared_contexts/application.rb.erb" builder.call(settings.merge(template_path: path)).render true end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems