Sha256: 11e40b828c73093399a8f57d4f207a7bf77bc24c47c0e0452080e6745fdca83e
Contents?: true
Size: 783 Bytes
Versions: 5
Compression:
Stored size: 783 Bytes
Contents
require 'test_helper' require 'simple_aws/elb' describe SimpleAWS::ELB do before do @api = SimpleAWS::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 SimpleAWS::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 = SimpleAWS::ELB.new "key", "secret" obj.describe_load_balancers end end end
Version data entries
5 entries across 5 versions & 1 rubygems