Sha256: 1d8a708a307a21487c4d485b4a7a1784e29af881b633e32efc3f6451a969f41d

Contents?: true

Size: 584 Bytes

Versions: 9

Compression:

Stored size: 584 Bytes

Contents

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

describe 'Rackspace::Servers.list_servers' do
  describe 'success' do

    before(:each) do
      # flavor 1 = 256, image 3 = gentoo 2008.0
      @server_id = servers.create_server(1, 3).body['server']['id']
    end

    after(:each) do
      eventually(128) do
        servers.delete_server(@server_id)
      end
    end

    it "should return proper attributes" do
      actual = servers.list_servers.body['servers'].first
      actual['id'].should be_an(Integer)
      actual['name'].should be_a(String)
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.0.31 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.30 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.29 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.28 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.27 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.26 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.25 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.24 spec/rackspace/requests/servers/list_servers_spec.rb
fog-0.0.23 spec/rackspace/requests/servers/list_servers_spec.rb