 server = require('../server')
   port: 0
   basedir: basedir
-  quiet: true
+  quiet: true  # suppress all output
 
 httpServer = null
 baseurl = null
+
+assertSameHTML = (got, filename) ->
+  expected = fs.readFileSync "#{__dirname}/expected/#{filename}", encoding:'utf8'
+  assert.strictEqual got, expected, 'Same HTML'
 
 describe 'server', ->
   before (done) ->

        assert.strictEqual err, null, 'No errors'
        assert.strictEqual resp.statusCode, 200, 'Status code is 200'
        assert.strictEqual resp.headers['content-type'], 'text/html; charset=utf-8', 'content-type'
        expected = fs.readFileSync "#{__dirname}/expected/markdown_example",
          encoding:'utf8'
        assert.strictEqual body, expected, 'HTML'
        done()

  describe '/archives', ->

        assert.strictEqual err, null, 'No errors'
        assert.strictEqual resp.statusCode, 200, 'Status code is 200'
        assert.strictEqual resp.headers['content-type'], 'text/html; charset=utf-8', 'content-type'
        assertSameHTML body, 'recents'
        done()

  describe '/2013/05/29/introducing_bitter_blog_engine', ->
