Sha256: d966b3f74c266416d5c0dca0c2d66e8a8429820daa68e6cc3161cd3c8bca6f50
Contents?: true
Size: 778 Bytes
Versions: 7
Compression:
Stored size: 778 Bytes
Contents
require 'test_helper' require 'aws/cloud_watch' describe AWS::CloudWatch do before do @api = AWS::CloudWatch.new "key", "secret" end it "points to endpoint, default to us-east-1" do @api.uri.must_equal "https://monitoring.us-east-1.amazonaws.com" end it "works with the current version" do @api.version.must_equal "2010-08-01" 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 "ListMetrics" params["Signature"].wont_be_nil true end obj = AWS::CloudWatch.new "key", "secret" obj.list_metrics end end end
Version data entries
7 entries across 7 versions & 1 rubygems