mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
490 B
Ruby
21 lines
490 B
Ruby
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
describe 'S3.delete_bucket' do
|
|
|
|
before(:all) do
|
|
@s3 = Fog::AWS::S3.gen
|
|
@s3.put_bucket('fogdeletebucket')
|
|
end
|
|
|
|
it 'should return proper attributes' do
|
|
actual = @s3.delete_bucket('fogdeletebucket')
|
|
actual.status.should == 204
|
|
end
|
|
|
|
it 'should raise a NotFound error if the bucket does not exist' do
|
|
lambda {
|
|
@s3.delete_bucket('fognotabucket')
|
|
}.should raise_error(Fog::Errors::NotFound)
|
|
end
|
|
|
|
end
|