Sha256: 3d639466d93e8c3ecaf45f1068af6738907b6a12f80e4a69ab80a6f475c426c2

Contents?: true

Size: 628 Bytes

Versions: 43

Compression:

Stored size: 628 Bytes

Contents

require 'pact/consumer/mock_service/rack_request_helper'
module Pact
  module Consumer
    class MockServiceAdministrationEndpoint

      attr_accessor :logger, :name

      def initialize name, logger
        @name = name
        @logger = logger
      end

      include RackRequestHelper

      def match? env
        headers_from(env)['X-Pact-Mock-Service'] &&
        env['REQUEST_PATH'] == request_path &&
          env['REQUEST_METHOD'] == request_method
      end

      def request_path
        raise NotImplementedError
      end

      def request_method
        raise NotImplementedError
      end

    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
pact-mock_service-0.2.1 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-mock_service-0.2.0 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-mock_service-0.1.0 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-mock_service-0.0.1 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.3.3 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.3.2 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.3.1 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.3.0 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.2.1.rc2 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.2.1.rc1 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.1.1 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.1.0 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.1.0.rc5 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.1.0.rc4 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.1.0.rc3 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.39 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.1.0.rc2 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.38 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.1.0.rc1 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.37 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb