1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ec2] cleanup and speed up describe instances spec

This commit is contained in:
geemus 2010-04-30 14:32:10 -07:00
parent ef44813ca9
commit 2fab232f22

View file

@ -3,13 +3,14 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
describe 'EC2.describe_instances' do
describe 'success' do
before(:each) do
before(:all) do
run_instances = AWS[:ec2].run_instances(GENTOO_AMI, 1, 1).body
@instance_id = run_instances['instancesSet'].first['instanceId']
@reservation_id = run_instances['reservationId']
AWS[:ec2].servers.get(@instance_id).wait_for { ready? }
end
after(:each) do
after(:all) do
AWS[:ec2].terminate_instances([@instance_id])
end