mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
491 B
Ruby
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
|