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/files/delete_container_spec.rb
2009-11-06 21:22:38 -08:00

24 lines
548 B
Ruby

require File.dirname(__FILE__) + '/../../../spec_helper'
describe 'Rackspace::Files.delete_container' do
describe 'success' do
before(:each) do
files.put_container('container_name')
end
it "should return proper attributes" do
files.delete_container('container_name')
end
end
describe 'failure' do
it "should raise a NotFound error if the container does not exist" do
lambda do
files.delete_container('container_name')
end.should raise_error(Excon::Errors::NotFound)
end
end
end