Sha256: 1dbe256074ee4db58ea9337a24c8a650fd4158965dbf89e382a3d6505d879e7f
Contents?: true
Size: 923 Bytes
Versions: 3
Compression:
Stored size: 923 Bytes
Contents
require File.expand_path '../../test_helper', __dir__ # Test class for Blob Collection class TestBlobs < Minitest::Test def setup @service = Fog::Storage::AzureRM.new(storage_account_credentials) @blobs = Fog::Storage::AzureRM::Blobs.new(service: @service) @response = ApiStub::Models::Storage::Blob.test_get_blob_metadata end def test_collection_methods methods = [ :set_blob_metadata, :get_blob_metadata ] methods.each do |method| assert @blobs.respond_to? method, true end end def test_get_blob_metadata @service.stub :get_blob_metadata, @response do assert_equal @response, @blobs.get_blob_metadata('Test-container', 'Test_Blob') end end def test_set_blob_metadata @service.stub :set_blob_metadata, true do assert @blobs.set_blob_metadata('Test-container', 'Test_Blob', @response) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.6 | test/models/storage/test_blobs.rb |
fog-azure-rm-0.0.5 | test/models/storage/test_blobs.rb |
fog-azure-rm-0.0.4 | test/models/storage/test_blobs.rb |