No title Revision 383633613639 (Tue Jun 14 2011 at 11:06) - Diff Link to this snippet: https://friendpaste.com/cHYk0lOyrtYPOo8gXaonH Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415161718192021222324apiEasy = require "api-easy"assert = require "assert"xml2js = require "xml2js"parser = new xml2js.Parser()suite = apiEasy.describe "Content module"suite.use "apps-beta.meego.com", 80# Distributionssuite.discuss("Getting list of distributions") .path("/ocs/v1/content/distributions") .get() .expect(200) .expect "Should contain a list", (error, response, body) -> parser = new xml2js.Parser() parser.on "end", (result) -> assert.equal result.meta.statuscode, 100 assert.equal result.data.distribution.length, result.meta.totalitems parser.parseString body .undiscuss() .unpath()suite.run()