Sha256: b05b165a2d684e4d624e999da106a2d6326f8de8f8f8acd730e82ab32fb58f26
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 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 configuration unless configuration.build_rspec path = "%project_name%/spec/support/shared_contexts/application.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/application_shared_context.rb |
hanamismith-0.37.0 | lib/hanamismith/builders/rspec/application_shared_context.rb |