Sha256: 5d3678720fe0da6da64fbf3ce6f306cfced5d7591fb3f7c5ef348a9eb8cdf961

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 Bytes

Contents

require 'spec_helper'

module Awsum
  describe Ec2 do

    subject { Ec2.new('abc', 'xyz') }
    let(:ec2) { subject }

    describe "retrieving a list of availability zones" do
      before do
        FakeWeb.register_uri(:get, %r|https://ec2\.amazonaws\.com/?.*Action=DescribeAvailabilityZones|, :body => fixture('ec2/availability_zones'), :status => 200)
      end

      let(:result) { ec2.availability_zones }

      it "should return an array of availability zones" do
        result.first.should be_a(Awsum::Ec2::AvailabilityZone)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
awsum-0.5.4 spec/lib/awsum/ec2/availability_zones_spec.rb
awsum-0.5.3 spec/lib/awsum/ec2/availability_zones_spec.rb
awsum-0.5.2 spec/lib/awsum/ec2/availability_zones_spec.rb
awsum-0.5.1 spec/lib/awsum/ec2/availability_zones_spec.rb
awsum-0.5 spec/lib/awsum/ec2/availability_zones_spec.rb