2009-10-11 16:37:25 -04:00
|
|
|
require File.dirname(__FILE__) + '/../../../spec_helper'
|
|
|
|
|
|
|
|
describe 'Rackspace::Files.get_containers' do
|
|
|
|
describe 'success' do
|
|
|
|
|
2009-11-05 03:02:26 -05:00
|
|
|
before(:each) do
|
|
|
|
files.put_container('container_name')
|
|
|
|
end
|
|
|
|
|
|
|
|
after(:each) do
|
|
|
|
files.delete_container('container_name')
|
|
|
|
end
|
|
|
|
|
2009-10-11 16:37:25 -04:00
|
|
|
it "should return proper attributes" do
|
2009-11-05 03:02:26 -05:00
|
|
|
actual = files.get_containers.body
|
|
|
|
actual.first['bytes'].should be_an(Integer)
|
|
|
|
actual.first['count'].should be_an(Integer)
|
|
|
|
actual.first['name'].should be_a(String)
|
2009-10-11 16:37:25 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|