{"size": 685, "ext": "js", "max_stars_repo_path": "public/tests/Discovery/GetCapabilities.js", "max_stars_repo_name": "cappelaere/rip", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/tests/Discovery/GetCapabilities.js", "max_issues_repo_name": "cappelaere/rip", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/tests/Discovery/GetCapabilities.js", "max_forks_repo_name": "cappelaere/rip", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.4642857143, "max_line_length": 58, "alphanum_fraction": 0.6437956204}
var request			= require('superagent');
var debug 			= require('debug')('Discovery');
var chai			= require('chai');
var AssertionError	= chai.AssertionError;

describe('Discovery Service', function(){
	var result;
	
	describe('GetCapabilities Document', function() {
		it('should be accessible', function(done) {
			var request_url = url + "?REQUEST=GetCapabilities";
			console.log("url:"+request_url);
			request
				.get(request_url)
				.end( function(res) {
					res.status.should.equal(200)
					result = res;
					done();
				})
		})
		
		it('should be content type text/xml', function(done) {
			result.headers['content-type'].should.equal('text/xml')
			done();
		})
		
	})
});