Sha256: 89823285354a826e86f91807aa0f7139262645600632cd8309b71c43459e6105
Contents?: true
Size: 857 Bytes
Versions: 5
Compression:
Stored size: 857 Bytes
Contents
require 'test_helper' require 'simple_aws/elastic_beanstalk' describe SimpleAWS::ElasticBeanstalk do before do @api = SimpleAWS::ElasticBeanstalk.new "key", "secret" end it "points to endpoint, default to us-east-1" do @api.uri.must_equal "https://elasticbeanstalk.us-east-1.amazonaws.com" end it "works with the current version" do @api.version.must_equal "2010-12-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 "DescribeApplications" params["Signature"].wont_be_nil true end obj = SimpleAWS::ElasticBeanstalk.new "key", "secret" obj.describe_applications end end end
Version data entries
5 entries across 5 versions & 1 rubygems