Sha256: 2eda3ca3c138f5f423e19dfbec39dcc598786cd53616104d7b913c86631c8b47

Contents?: true

Size: 584 Bytes

Versions: 102

Compression:

Stored size: 584 Bytes

Contents

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

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

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

    it "should return proper attributes" do
      Rackspace[:files].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[:files].delete_container('container_name')
      end.should raise_error(Excon::Errors::NotFound)
    end

  end
end

Version data entries

102 entries across 102 versions & 2 rubygems

Version Path
fog-0.2.30 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.28 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.27 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.26 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.25 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.24 spec/rackspace/requests/files/delete_container_spec.rb
tecnh-fog-0.2.23.vpc spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.23 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.22 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.21 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.20 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.19 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.18 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.17 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.16 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.15 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.14 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.13 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.12 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.2.11 spec/rackspace/requests/files/delete_container_spec.rb