suite 'Creating XML', -> test 'Headless', -> eq( xml('root', {}, {}, { headless: true }) .ele('xmlbuilder', { 'for': 'node-js' }) .ele('repo', { 'type': 'git' }, 'git://github.com/oozcitak/xmlbuilder-js.git') .end() '' + '' + 'git://github.com/oozcitak/xmlbuilder-js.git' + '' + '' )