Sha256: f4644a69e571e94f2c2c58edda75140445653f060d6146a82bb90fa3fe22878e

Contents?: true

Size: 565 Bytes

Versions: 6

Compression:

Stored size: 565 Bytes

Contents

# frozen_string_literal: true

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

module ConvenientService
  module RSpec
    module Helpers
      module Classes
        ##
        # 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

6 entries across 6 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/rspec/helpers/classes/stub_service.rb
convenient_service-0.19.0 lib/convenient_service/rspec/helpers/classes/stub_service.rb
convenient_service-0.18.0 lib/convenient_service/rspec/helpers/classes/stub_service.rb
convenient_service-0.17.0 lib/convenient_service/rspec/helpers/classes/stub_service.rb
convenient_service-0.16.0 lib/convenient_service/rspec/helpers/classes/stub_service.rb
convenient_service-0.15.0 lib/convenient_service/rspec/helpers/classes/stub_service.rb