Sha256: 87a62202c6b7c5bab4f3c39fcf301f286ca5176c258e894a4ed540b3c20ce742

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

require 'pact/consumer/mock_service/rack_request_helper'
require 'pact/consumer/mock_service/mock_service_administration_endpoint'

module Pact
  module Consumer

    class IndexGet < MockServiceAdministrationEndpoint

      def request_path
        ''
      end

      def request_method
        'GET'
      end

      def respond env
        [200, {'Content-Type' => 'text/plain'}, ['Mock service running']]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact-mock_service-0.2.4 lib/pact/consumer/mock_service/index_get.rb