Sha256: f6a2145a4331653d9549b12c96a991378f45d98803094b557980e6127977a930

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

require 'pact/provider/state/provider_state_proxy'

module Pact

  def self.world
    @world ||= Pact::Provider::World.new
  end

  # internal api, for testing only
  def self.clear_world
    @world = nil
  end

  module Provider
    class World

      attr_reader :json_formatter_stream

      def initialize
        @json_formatter_stream = StringIO.new
      end

      def provider_states
        @provider_states_proxy ||= Pact::Provider::State::ProviderStateProxy.new
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact-1.1.1 lib/pact/provider/world.rb
pact-1.1.0 lib/pact/provider/world.rb
pact-1.1.0.rc5 lib/pact/provider/world.rb
pact-1.1.0.rc4 lib/pact/provider/world.rb
pact-1.1.0.rc3 lib/pact/provider/world.rb
pact-1.0.39 lib/pact/provider/world.rb
pact-1.1.0.rc2 lib/pact/provider/world.rb
pact-1.0.38 lib/pact/provider/world.rb