Sha256: 4a6210e9928090773586bad45a594ae7c2b9dd6e4697901376499d5bd13538b4

Contents?: true

Size: 491 Bytes

Versions: 16

Compression:

Stored size: 491 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-0.3.17 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.16 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.15 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.14 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.13 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.12 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.11 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.10 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.9 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.8 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.7 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.6 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.5 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.4 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.3 spec/google/requests/storage/put_bucket_spec.rb
fog-0.3.2 spec/google/requests/storage/put_bucket_spec.rb