Sha256: c874988336dea9a8a0d6ccb71ba55d8a6f023acf5732e0e79d19ef195714665c
Contents?: true
Size: 625 Bytes
Versions: 2
Compression:
Stored size: 625 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['PATH_INFO'] == 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
2 entries across 2 versions & 1 rubygems