         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/archives", encoding:'utf8'
-        assert.strictEqual body, expected, 'HTML'
+        assertSameHTML body, 'archives'
         done()
 
   describe '/2013/', ->

server = require('../server')
  port: 0
  basedir: basedir
  quiet: true

httpServer = null
baseurl = null

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'
        assertSameHTML body, 'blog_engine_bitter'
        done()

  describe '/2013/05/27/markdown_example', ->
