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.0.82 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.81 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.80 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.79 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.78 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.77 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.76 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.75 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.74 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.73 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.72 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.71 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.70 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.69 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.68 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.67 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.66 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.65 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.64 spec/rackspace/requests/files/delete_container_spec.rb
fog-0.0.63 spec/rackspace/requests/files/delete_container_spec.rb