Sha256: 08244ea231aad58db8b38b438798ee98dff7b266468f12c53c0101b426e0c1b8

Contents?: true

Size: 752 Bytes

Versions: 7

Compression:

Stored size: 752 Bytes

Contents

require 'test_helper'
require 'aws/elb'

describe AWS::ELB do

  before do
    @api = AWS::ELB.new "key", "secret"
  end

  it "points to the endpoint" do
    @api.uri.must_equal "https://elasticloadbalancing.amazonaws.com"
  end

  it "works with the current version" do
    @api.version.must_equal "2011-11-15"
  end

  describe "API calls" do

    it "builds and signs calls with ActionParam rules" do
      AWS::Connection.any_instance.expects(:call).with do |request|
        params = request.params
        params.wont_be_nil

        params["Action"].must_equal "DescribeLoadBalancers"
        params["Signature"].wont_be_nil

        true
      end

      obj = AWS::ELB.new "key", "secret"
      obj.describe_load_balancers
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_aws-1.0.0 test/aws/elb_test.rb
simple_aws-1.0.0.pre3 test/aws/elb_test.rb
simple_aws-1.0.0.pre2 test/aws/elb_test.rb
simple_aws-1.0.0.pre1 test/aws/elb_test.rb
simple_aws-0.0.1d test/aws/elb_test.rb
simple_aws-0.0.1c test/aws/elb_test.rb
simple_aws-0.0.1b test/aws/elb_test.rb