Sha256: 55cdd9aca538e84f7084b4efc15b9f29f2cfe08ca99beecf807b587dc690dee5

Contents?: true

Size: 564 Bytes

Versions: 3

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

require_relative "stub_service/constants"
require_relative "stub_service/entities"

module ConvenientService
  module RSpec
    module Helpers
      module Custom
        ##
        # TODO: Specs.
        #
        class StubService < Support::Command
          attr_reader :service_class

          def initialize(service_class)
            @service_class = service_class
          end

          def call
            Entities::StubbedService.new(service_class: @service_class)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
convenient_service-0.14.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.13.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.12.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb