Sha256: feb02b89a81e13f83246b15c79edd30474f483ea62995b4d3c2377a5b7542868

Contents?: true

Size: 602 Bytes

Versions: 14

Compression:

Stored size: 602 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'Rackspace::Storage.delete_container' do
  describe 'success' do

    before(:each) do
      Rackspace[:storage].put_container('container_name')
    end

    it "should return proper attributes" do
      Rackspace[:storage].delete_container('container_name')
    end

  end
  describe 'failure' do

    it "should raise a NotFound error if the container does not exist" do
      lambda do
        Rackspace[:storage].delete_container('container_name')
      end.should raise_error(Fog::Rackspace::Storage::NotFound)
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.3.13 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.12 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.11 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.10 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.9 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.8 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.7 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.6 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.5 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.4 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.3 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.2 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.1 spec/rackspace/requests/storage/delete_container_spec.rb
fog-0.3.0 spec/rackspace/requests/storage/delete_container_spec.rb