helpers = require('../helpers') AWS = helpers.AWS describe 'AWS.RDS', -> describe 'createDBSecurityGroup', -> it 'properly parses XML response', -> rds = new AWS.RDS() body = """ foo 1234567890 foo 1234567890 """ helpers.mockHttpResponse 200, {}, body params = DBSecurityGroupName:'foo', DBSecurityGroupDescription:'foo' rds.createDBSecurityGroup params, (error, data) -> expect(error).toBe(null) expect(this.requestId).toEqual('1234567890') expect(data).toEqual DBSecurityGroup: DBSecurityGroupDescription: 'foo' DBSecurityGroupName: 'foo' EC2SecurityGroups: [] IPRanges: [] OwnerId: '1234567890' ResponseMetadata: RequestId: '1234567890'