1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/google/requests/storage/put_bucket_spec.rb
2010-09-24 13:13:55 -07:00

21 lines
491 B
Ruby

require File.dirname(__FILE__) + '/../../../spec_helper'
describe 'Storage.put_bucket' do
describe 'success' do
before(:each) do
@response = Google[:storage].put_bucket('fogputbucket')
end
after(:each) do
Google[:storage].delete_bucket('fogputbucket')
end
it 'should raise an error if the bucket already exists' do
lambda {
Google[:storage].put_bucket('fogputbucket')
}.should raise_error(Excon::Errors::Conflict)
end
end
end