Sha256: 120e97634841aaa309a241486e4bac2d748d722cd3db72fabd72a6406b2ae33c

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 Bytes

Contents

module Pact
  module Messages
    module Consumer
      module MockServiceFactory
        module Scope
          extend Pact::Helpers
        end

        module_function

        def build(mock_service_name, &block)
          contract_builder = Pact::Messages.consumer_world.find_contract_builder(mock_service_name)
          Scope.module_exec(contract_builder, &block)
          contract_builder.write_pact
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact-messages-0.2.0 lib/pact/messages/consumer/mock_service_factory.rb
pact-messages-0.1.1 lib/pact/messages/consumer/mock_service_factory.rb
pact-messages-0.1.0 lib/pact/messages/consumer/mock_service_factory.rb