Sha256: cc1fdf5e86061d0968838f1001d3a95000cd5ef68b164468b5d7b3e0651cfeb1
Contents?: true
Size: 848 Bytes
Versions: 3
Compression:
Stored size: 848 Bytes
Contents
require File.expand_path '../../test_helper', __dir__ # Storage Container Class class TestListContainers < Minitest::Test # This class posesses the test cases for the requests of listing storage containers. def setup @service = Fog::Storage::AzureRM.new(storage_account_credentials) @blob_client = @service.instance_variable_get(:@blob_client) @storage_container_object = ApiStub::Requests::Storage::Directory.list_containers end def test_list_containers_with_service_success @blob_client.stub :list_containers, @storage_container_object do assert @service.list_containers.size >= 1 end end def test_list_containers_with_internal_client_success @blob_client.stub :list_containers, @storage_container_object do assert @blob_client.list_containers.size >= 1 end end end
Version data entries
3 entries across 3 versions & 1 rubygems