Sha256: 0ad428f9e97b99a72eb8c50b6e6567ed6a375fc4560b72f79ba12fc45fabc455

Contents?: true

Size: 749 Bytes

Versions: 11

Compression:

Stored size: 749 Bytes

Contents

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

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

    before(:each) do
      files.put_container('container_name')
      files.put_object('container_name', 'object_name', lorem_file)
    end
    
    after(:each) do
      files.delete_object('container_name', 'object_name')
      files.delete_container('container_name')
    end

    it "should return proper attributes" do
      files.head_container('container_name')
    end

  end
  describe 'failure' do

    it "should raise a NotFound error if the container does not exist" do
      lambda do
        files.head_container('container_name')
      end.should raise_error(Excon::Errors::NotFound)
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fog-0.0.40 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.39 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.38 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.37 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.36 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.35 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.34 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.33 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.32 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.31 spec/rackspace/requests/files/head_container_spec.rb
fog-0.0.30 spec/rackspace/requests/files/head_container_spec.rb