Sha256: cd78addea8b29bc4d20dd5d564ebef8cf480b2cb23a09decd8218288bf57456f

Contents?: true

Size: 574 Bytes

Versions: 14

Compression:

Stored size: 574 Bytes

Contents

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

describe 'Rackspace::Storage.get_containers' do
  describe 'success' do

    before(:each) do
      Rackspace[:storage].put_container('container_name')
    end

    after(:each) do
      Rackspace[:storage].delete_container('container_name')
    end

    it "should return proper attributes" do
      actual = Rackspace[:storage].get_containers.body
      actual.first['bytes'].should be_an(Integer)
      actual.first['count'].should be_an(Integer)
      actual.first['name'].should be_a(String)
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.3.13 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.12 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.11 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.10 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.9 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.8 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.7 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.6 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.5 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.4 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.3 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.2 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.1 spec/rackspace/requests/storage/get_containers_spec.rb
fog-0.3.0 spec/rackspace/requests/storage/get_containers_spec.rb