Sha256: 190626954fc6b95ab41776f9708736fe957a77fe66fa833062e17b496105fe83

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 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 checking if blob exists.
  def setup
    @service = Fog::Storage::AzureRM.new(storage_account_credentials)
    @blob_client = @service.instance_variable_get(:@blob_client)
  end

  def test_check_blob_exist_success
    blob = ApiStub::Requests::Storage::File.get_blob_properties
    @blob_client.stub :get_blob_properties, blob do
      assert @service.check_blob_exist('test_container', 'test_blob'), true
    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_check_blob_exist.rb
fog-azure-rm-0.0.9 test/requests/storage/test_check_blob_exist.rb
fog-azure-rm-0.0.8 test/requests/storage/test_check_blob_exist.rb