Sha256: 94d0137727949f0d12561850d2219a96a198801082bea4afcb25822b4fb45b78

Contents?: true

Size: 652 Bytes

Versions: 2

Compression:

Stored size: 652 Bytes

Contents

require "integration/test_helper"

describe "Managing the blob's properties" do
  before do
    @container = Azure::Blobs.create_container(ContainerNameHelper.name)
  end

  after do
    ContainerNameHelper.clean
  end

  it "should set blob properties" do
    # FIXME: Why do this if we're not checking for any property getting set?
    blob = create_block_blob(:container => @container)
    result = blob.save_properties!
    result.must_equal true
  end

  it "force-loads the properties" do
    blob = create_block_blob(:container => @container)
    blob.properties.clear
    blob.load_properties!
    blob.properties["etag"].wont_be_nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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