Sha256: 6e28c6b719176537e73821ef2fcc3953502ddab0ed0a2f565d0d6d5de864503e
Contents?: true
Size: 670 Bytes
Versions: 31
Compression:
Stored size: 670 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' describe 'Rackspace::Servers.delete_server' 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 it "should return proper attributes" do eventually(128) do Rackspace[:servers].delete_server(@server_id) end end end describe 'failure' do it "should raise a NotFound error if the server does not exist" do lambda { Rackspace[:servers].delete_server(0) }.should raise_error(Excon::Errors::NotFound) end end end
Version data entries
31 entries across 31 versions & 1 rubygems