Sha256: c670412b22b6a5dce0fe494b396e1646f3b09d024c483042cffdaa59199523c0
Contents?: true
Size: 751 Bytes
Versions: 5
Compression:
Stored size: 751 Bytes
Contents
require 'test_helper' require 'simple_aws/rds' describe SimpleAWS::RDS do before do @api = SimpleAWS::RDS.new "key", "secret" end it "points to the endpoint" do @api.uri.must_equal "https://rds.amazonaws.com" end it "works with the current version" do @api.version.must_equal "2011-04-01" end describe "API calls" do it "builds and signs calls with ActionParam rules" do SimpleAWS::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 = SimpleAWS::RDS.new "key", "secret" obj.describe_events end end end
Version data entries
5 entries across 5 versions & 1 rubygems