Sha256: e9aed30e50420b6359621d571f59c59d173358a2ad6a3323bf2ac7a2da975bcb
Contents?: true
Size: 1005 Bytes
Versions: 86
Compression:
Stored size: 1005 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe 'Rackspace::Files.get_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 actual = Rackspace[:files].get_container('container_name').body actual.first['bytes'].should be_an(Integer) actual.first['content_type'].should be_a(String) actual.first['hash'].should be_a(String) actual.first['last_modified'].should be_a(String) actual.first['name'].should be_a(String) end end describe 'failure' do it "should not raise an if the container does not exist" do Rackspace[:files].get_container('container_name') end end end
Version data entries
86 entries across 86 versions & 1 rubygems