Sha256: 01b4f21b60ba2b647c4768f74b3ee97aadf48e546d39d1fbfbcf9e7b49585482
Contents?: true
Size: 670 Bytes
Versions: 9
Compression:
Stored size: 670 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe 'Rackspace::Servers.create_image' do describe 'success' do before(:each) do # flavor 1 = 256, image 3 = gentoo 2008.0 @server_id = servers.create_server(1, 3, 'name').body['server']['id'] end after(:each) do eventually(128) do servers.delete_server(@server_id) end servers.delete_image(@image_id) end it "should return proper attributes" do actual = servers.create_image(@server_id).body['image'] @image_id = actual['id'] actual['id'].should be_an(Integer) actual['serverId'].should be_an(Integer) end end end
Version data entries
9 entries across 9 versions & 1 rubygems