Sha256: c1a719076ffd7ee74e14654326708b99949f76d52082e6314d764be0e8e02624

Contents?: true

Size: 841 Bytes

Versions: 14

Compression:

Stored size: 841 Bytes

Contents

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

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

    before(:each) do
      Rackspace[:storage].put_container('container_name')
      Rackspace[:storage].put_object('container_name', 'object_name', lorem_file)
    end

    after(:each) do
      Rackspace[:storage].delete_object('container_name', 'object_name')
      Rackspace[:storage].delete_container('container_name')
    end

    it "should return proper attributes" do
      Rackspace[:storage].head_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].head_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/head_container_spec.rb
fog-0.3.12 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.11 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.10 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.9 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.8 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.7 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.6 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.5 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.4 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.3 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.2 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.1 spec/rackspace/requests/storage/head_container_spec.rb
fog-0.3.0 spec/rackspace/requests/storage/head_container_spec.rb