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/ec2/describe_regions_spec.rb

20 lines
579 B
Ruby
Raw Normal View History

2009-07-23 22:52:17 -07:00
require File.dirname(__FILE__) + '/../../spec_helper'
describe 'EC2.describe_availability_zones' do
it "should return proper attributes with no params" do
actual = ec2.describe_regions
2009-08-01 01:15:44 -07:00
zone = actual.body['regionInfo'].first
zone['regionEndpoint'].should be_a(String)
zone['regionName'].should be_a(String)
2009-07-23 22:52:17 -07:00
end
it "should return proper attribute with params" do
actual = ec2.describe_regions(['us-east-1'])
2009-08-01 01:15:44 -07:00
zone = actual.body['regionInfo'].first
zone['regionEndpoint'].should be_a(String)
zone['regionName'].should be_a(String)
2009-07-23 22:52:17 -07:00
end
end