Sha256: 471a70762ec1c358bd54ff2401d6db5fc3e999b718ac75d2690a7fb9620a5d56

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

module Pact

  def self.consumer_world
    @consumer_world ||= Pact::Consumer::World.new
  end

  # internal api, for testing only
  def self.clear_consumer_world
    @consumer_world = nil
  end

  module Consumer
    class World

      def consumer_contract_builders
        @consumer_contract_builders ||= []
      end

      def add_consumer_contract_builder consumer_contract_builder
        consumer_contract_builders << consumer_contract_builder
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact-1.3.0 lib/pact/consumer/world.rb
pact-1.2.1.rc2 lib/pact/consumer/world.rb
pact-1.2.1.rc1 lib/pact/consumer/world.rb