module Pact

def self.clear_consumer_world

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

def self.clear_provider_world

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

def self.consumer_world

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

def self.project_root

def self.project_root
  @project_root ||= Pathname.new(File.expand_path('../../../',__FILE__)).freeze
end

def self.provider_world

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