Sha256: c4f4a07d2985058962800b9815419d28997e83ae67275a5a13d2995a4f4bc096
Contents?: true
Size: 628 Bytes
Versions: 31
Compression:
Stored size: 628 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 = Rackspace[:servers].create_server(1, 3, 'name').body['server']['id'] end after(:each) do eventually(128) do Rackspace[:servers].delete_server(@server_id) end end it "should return proper attributes" do actual = Rackspace[:servers].list_servers.body['servers'].first actual['id'].should be_an(Integer) actual['name'].should be_a(String) end end end
Version data entries
31 entries across 31 versions & 1 rubygems