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)
  display_warning('Excon#mock is deprecated, use Excon.defaults[:mock]= instead.')
  self.defaults[:mock] = new_mock
end