Sha256: feaa9455f2be01f6ff6fead0146fe9f55376d19ec35d9291c285a3e7ddf1c719
Contents?: true
Size: 660 Bytes
Versions: 3
Compression:
Stored size: 660 Bytes
Contents
require File.expand_path '../../test_helper', __dir__ # Storage Blob Class class TestCopyBlob < Minitest::Test # This class posesses the test cases for the requests of copying blobs. def setup @service = Fog::Storage::AzureRM.new(storage_account_credentials) @blob_client = @service.instance_variable_get(:@blob_client) @copy_blob_reponse = ApiStub::Requests::Storage::File.copy_blob end def test_copy_blob_success @blob_client.stub :copy_blob, @copy_blob_reponse do assert @service.copy_blob('destination_container', 'destination_blob', 'source_container', 'source_blob'), @copy_blob_reponse end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.0 | test/requests/storage/test_copy_blob.rb |
fog-azure-rm-0.0.9 | test/requests/storage/test_copy_blob.rb |
fog-azure-rm-0.0.8 | test/requests/storage/test_copy_blob.rb |