1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/rackspace/models/servers/servers_spec.rb

23 lines
567 B
Ruby
Raw Normal View History

2010-01-31 20:33:47 -05:00
require File.dirname(__FILE__) + '/../../../spec_helper'
require File.dirname(__FILE__) + '/../../../shared_examples/servers_examples'
describe 'Fog::Rackspace::Servers::Servers' do
it_should_behave_like "Servers"
# flavor 1 = 256, image 3 = gentoo 2008.0
subject { @server = @servers.new(:flavor_id => 1, :image_id => 3, :name => 'name') }
before(:each) do
@servers = Rackspace[:servers].servers
end
after(:each) do
if @server && !@server.new_record?
@server.wait_for { ready? }
@server.destroy.should be_true
end
end
end