Sha256: 6ddbd23222958ee3b45dc4bc8421a0cdb7043da5c3a4a0d714cea3e7daa6c381
Contents?: true
Size: 821 Bytes
Versions: 102
Compression:
Stored size: 821 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe 'Rackspace::Files.head_container' do describe 'success' do before(:each) do Rackspace[:files].put_container('container_name') Rackspace[:files].put_object('container_name', 'object_name', lorem_file) end after(:each) do Rackspace[:files].delete_object('container_name', 'object_name') Rackspace[:files].delete_container('container_name') end it "should return proper attributes" do Rackspace[: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 Rackspace[:files].head_container('container_name') end.should raise_error(Excon::Errors::NotFound) end end end
Version data entries
102 entries across 102 versions & 2 rubygems