module Excon

def mock=(new_mock)

true returns a value from stubs or raises
false is the default and works as expected
Change the status of mocking
def mock=(new_mock)
  puts("Excon#mock is deprecated, pass Excon.defaults[:mock]= instead (#{caller.first})")
  self.defaults[:mock] = new_mock
end