1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/rackspace/requests/storage/get_containers_spec.rb
2010-09-09 17:50:38 -07:00

22 lines
574 B
Ruby

require File.dirname(__FILE__) + '/../../../spec_helper'
describe 'Rackspace::Storage.get_containers' do
describe 'success' do
before(:each) do
Rackspace[:storage].put_container('container_name')
end
after(:each) do
Rackspace[:storage].delete_container('container_name')
end
it "should return proper attributes" do
actual = Rackspace[:storage].get_containers.body
actual.first['bytes'].should be_an(Integer)
actual.first['count'].should be_an(Integer)
actual.first['name'].should be_a(String)
end
end
end