Sha256: 11c1acf405af94885deb4940cb9436f871da83f4bb1d713016995447f0b742fb

Contents?: true

Size: 540 Bytes

Versions: 2

Compression:

Stored size: 540 Bytes

Contents

require "integration/test_helper"

describe "Get Blob Snapshot" do
  before do
    @container = Azure::Blobs.create_container(ContainerNameHelper.name)
    @blob = Azure::Blobs.create_page_blob(@container, "myBlob", 2048)
  end

  after do
    ContainerNameHelper.clean
  end

  it "should be able to fetch a snapshot from a blob snapshot id" do
    snapshot = Azure::Blobs.create_snapshot(@blob)
    snapshot = Azure::Blobs.get_snapshot(@container, @blob.name, snapshot.id)
    snapshot.must_be :kind_of?, Azure::Blobs::Snapshot
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure-0.1.1 test/integration/blobs/get_blob_snapshot_test.rb
azure-0.1.0 test/integration/blobs/get_blob_snapshot_test.rb