Sha256: 461105e711ff40276abc4100bf94bca3f7a54b2547b4b5333bc4cd21476cec47

Contents?: true

Size: 926 Bytes

Versions: 38

Compression:

Stored size: 926 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'S3.get_service' do
  describe 'success' do

    before(:each) do
      s3.put_bucket('foggetservice')
    end

    after(:each) do
      s3.delete_bucket('foggetservice')
    end

    it 'should return proper_attributes' do
      actual = s3.get_service
      actual.body['Buckets'].should be_an(Array)
      bucket = actual.body['Buckets'].select {|bucket| bucket['Name'] == 'foggetservice'}.first
      bucket['CreationDate'].should be_a(Time)
      bucket['Name'].should == 'foggetservice'
      owner = actual.body['Owner']
      owner['DisplayName'].should be_a(String)
      owner['ID'].should be_a(String)
    end

    it 'should include foggetservice in get_service' do
      eventually do
        actual = s3.get_service
        actual.body['Buckets'].collect { |bucket| bucket['Name'] }.should include('foggetservice')
      end
    end

  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fog-0.0.40 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.39 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.38 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.37 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.36 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.35 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.34 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.33 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.32 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.31 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.30 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.29 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.28 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.27 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.26 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.25 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.24 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.23 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.22 spec/aws/requests/s3/get_service_spec.rb
fog-0.0.21 spec/aws/requests/s3/get_service_spec.rb