
var request = require('supertest')
  , app = require('../../examples/ejs');

describe('ejs', function(){
  describe('GET /', function(){
    it('should respond with html', function(done){
      request(app)
      .get('/')
      .end(function(err, res){
        res.should.have.status(200);
        res.should.have.header('Content-Type', 'text/html; charset=utf-8');
        res.text.should.include('<li>tobi &lt;tobi@learnboost.com&gt;</li>');
        res.text.should.include('<li>loki &lt;loki@learnboost.com&gt;</li>');
        res.text.should.include('<li>jane &lt;jane@learnboost.com&gt;</li>');
        done();
      });
    })
  })
})