Sha256: 7cbdf8ab8024f60308f49e0d7953e2cda374903a6a8874a0810ea8f55e53e3a6

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Awsborn::Ec2 do
  context ".endpoint_for_zone" do
    it "should have endpoints for zones in five regions" do
      Awsborn::Ec2.endpoint_for_zone(:eu_west_1a).should == 'https://eu-west-1.ec2.amazonaws.com'
      Awsborn::Ec2.endpoint_for_zone("eu_west_1b").should == 'https://eu-west-1.ec2.amazonaws.com'
      Awsborn::Ec2.endpoint_for_zone(:us_west_1b).should == 'https://us-west-1.ec2.amazonaws.com'
      Awsborn::Ec2.endpoint_for_zone(:us_east_1b).should == 'https://us-east-1.ec2.amazonaws.com'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awsborn-0.7.0 spec/ec2_spec.rb