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