Sha256: 3ff1263130eb27d411fc6301f5fe0b0ac916b87e236807bb291c3086154f2216
Contents?: true
Size: 715 Bytes
Versions: 3
Compression:
Stored size: 715 Bytes
Contents
require File.expand_path '../../test_helper', __dir__ # Blob Class class TestGetBlobMetadata < Minitest::Test # This class posesses the test cases for the requests of Blob service. def setup @service = Fog::Storage::AzureRM.new(storage_account_credentials) @blob_client = @service.instance_variable_get(:@blob_client) @blob_object = ApiStub::Requests::Storage::Blob.test_get_blob_metadata end def test_get_blob_metadata_success metadata_response = ApiStub::Requests::Storage::Blob.metadata_response @blob_client.stub :get_blob_metadata, @blob_object do assert_equal @service.get_blob_metadata('Test-container', 'Test-blob'), metadata_response end end end
Version data entries
3 entries across 3 versions & 1 rubygems