1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/aws/requests/ec2/describe_availability_zones_spec.rb
2009-08-17 15:25:19 -07:00

25 lines
750 B
Ruby

require File.dirname(__FILE__) + '/../../spec_helper'
describe 'EC2.describe_availability_zones' do
before(:all) do
@ec2 = Fog::AWS::EC2.gen
end
it "should return proper attributes with no params" do
actual = @ec2.describe_availability_zones
zone = actual.body['availabilityZoneInfo'].first
zone['regionName'].should be_a(String)
zone['zoneName'].should be_a(String)
zone['zoneState'].should be_a(String)
end
it "should return proper attribute with params" do
actual = @ec2.describe_availability_zones(['us-east-1a'])
zone = actual.body['availabilityZoneInfo'].first
zone['regionName'].should be_a(String)
zone['zoneName'].should be_a(String)
zone['zoneState'].should be_a(String)
end
end