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