Sha256: 6cc6cd54c72113903d0d444a6b37c9109a06e6368f591085aa72f3e2dd770c3d

Contents?: true

Size: 711 Bytes

Versions: 110

Compression:

Stored size: 711 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 initialize
        @any_pact_examples_ran = false
      end

      def consumer_contract_builders
        @consumer_contract_builders ||= []
      end

      def add_consumer_contract_builder consumer_contract_builder
        consumer_contract_builders << consumer_contract_builder
      end

      def register_pact_example_ran
        @any_pact_examples_ran = true
      end

      def any_pact_examples_ran?
        @any_pact_examples_ran
      end

    end
  end
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
pact-1.55.2 lib/pact/consumer/world.rb
pact-1.55.1 lib/pact/consumer/world.rb
pact-1.55.0 lib/pact/consumer/world.rb
pact-1.54.0 lib/pact/consumer/world.rb
pact-1.53.0 lib/pact/consumer/world.rb
pact-1.52.0 lib/pact/consumer/world.rb
pact-1.51.1 lib/pact/consumer/world.rb
pact-1.51.0 lib/pact/consumer/world.rb
pact-1.50.1 lib/pact/consumer/world.rb
pact-1.50.0 lib/pact/consumer/world.rb
pact-1.49.3 lib/pact/consumer/world.rb
pact-1.49.2 lib/pact/consumer/world.rb
pact-1.49.1 lib/pact/consumer/world.rb
pact-1.49.0 lib/pact/consumer/world.rb
pact-1.48.0 lib/pact/consumer/world.rb
pact-1.47.0 lib/pact/consumer/world.rb
pact-1.46.1 lib/pact/consumer/world.rb
pact-1.46.0 lib/pact/consumer/world.rb
pact-1.45.0 lib/pact/consumer/world.rb
pact-1.44.1 lib/pact/consumer/world.rb