Sha256: 7917cbec0027b5f5a847bedb1ed9f301230e4b50e8e58370b0adfe16ffcb11bc

Contents?: true

Size: 522 Bytes

Versions: 14

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

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

14 entries across 14 versions & 1 rubygems

Version Path
convenient_service-0.11.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.10.1 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.10.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.9.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.8.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.7.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.6.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.5.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.4.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.3.1 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.3.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.2.1 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.2.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb
convenient_service-0.1.0 lib/convenient_service/rspec/helpers/custom/stub_service.rb