Sha256: 75b92e87bf0d1d5c7cf5b08bf8d117d70281b5303c2bc2bc8250cdf52a247431
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
require File.expand_path '../../test_helper', __dir__ # Storage Blob Class class TestListBlobs < Minitest::Test # This class posesses the test cases for the requests of acquire blob lease. def setup @service = Fog::Storage::AzureRM.new(storage_account_credentials) @blob_client = @service.instance_variable_get(:@blob_client) end def test_acquire_blob_lease_success lease_id = { 'leaseId' => 'abc123' } @blob_client.stub :acquire_blob_lease, lease_id do assert @service.acquire_blob_lease('test_container', 'test_blob'), lease_id end end end
Version data entries
3 entries across 3 versions & 1 rubygems