module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real def delete_object(container_name, blob_name) delete_blob(container_name, blob_name) end end # This class provides the mock implementation for unit tests. class Mock def delete_object(*) Fog::Logger.debug 'Blob deleted successfully.' true end end end end end