Sha256: ee2720fa3ef20e651388a145472d7d09998d8a3ad0a4cdc8ef04632711f67b28

Contents?: true

Size: 524 Bytes

Versions: 9

Compression:

Stored size: 524 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 false unless settings.build_rspec

          path = "%project_name%/spec/support/factory.rb.erb"
          builder.call(settings.merge(template_path: path)).render

          true
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hanamismith-0.47.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.46.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.45.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.44.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.43.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.42.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.41.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.40.0 lib/hanamismith/builders/rspec/factory.rb
hanamismith-0.39.0 lib/hanamismith/builders/rspec/factory.rb