Sha256: d752af3a081a63f270c5914692ebef97163e1c05e8c1ee9be0f219a34a8bf879

Contents?: true

Size: 746 Bytes

Versions: 7

Compression:

Stored size: 746 Bytes

Contents

require 'test_helper'
require 'aws/map_reduce'

describe AWS::MapReduce do

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

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

  it "works with the current version" do
    @api.version.must_equal "2009-03-31"
  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 "GetGroup"
        params["Signature"].wont_be_nil

        true
      end

      obj = AWS::MapReduce.new "key", "secret"
      obj.get_group
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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