Sha256: 788c767b3dc0ff7e3326e0bd83ad27e81fcd621cd28e94aa69c44c2e6073faa7

Contents?: true

Size: 793 Bytes

Versions: 7

Compression:

Stored size: 793 Bytes

Contents

require 'test_helper'
require 'aws/elasti_cache'

describe AWS::ElastiCache do

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

  it "points to the endpoint, default to us-east-1" do
    @api.uri.must_equal "https://elasticache.us-east-1.amazonaws.com"
  end

  it "works with the current version" do
    @api.version.must_equal "2011-07-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 "DescribeEvents"
        params["Signature"].wont_be_nil

        true
      end

      obj = AWS::ElastiCache.new "key", "secret"
      obj.describe_events
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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