Sha256: d0fbd9f962a89e221c13de56b783dde26feb27c3aeb68a345d1dc22676fd53c5

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

require "integration/test_helper"

describe "Deleting a container" do
  after do
    ContainerNameHelper.clean
  end

  it "should return false if the container cannot be deleted" do
    container = Azure::Blobs::Container.new(ContainerNameHelper.name)
    response = container.delete

    response.must_equal false
    refute container.valid?
    refute container.frozen?
  end

  it "should return true if the container can be deleted" do
    container = Azure::Blobs.create_container(ContainerNameHelper.name)
    response = container.delete

    response.must_equal true
    assert container.frozen?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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