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