         @stream.on 'data', (data) ->
           fullData += data.toString()
         @stream.on 'end', =>
-          expect(fullData).to.be.eql @dummy.toString()
+          expect(fullData).to.have.string @dummyBody
           done()

        key: fs.readFileSync './test/fixtures/server.key'
        cert: fs.readFileSync './test/fixtures/server.crt'
      , (req, res) =>
        if req.url.indexOf('404') > -1
          res.writeHead 404
          res.end()
        else
          res.writeHead 200, 'Content-Type': 'text/html'
          res.end @dummy

      @server.listen @port, @address


  before ->
    @file  = './test/fixtures/dummy.html'
    @dummy = fs.readFileSync @file

    pattern    = /<body[^>]*>((.|[\n\r])*)<\/body>/im
    matches    = pattern.exec @dummy.toString()
    @dummyBody = matches[1]

  beforeEach ->
    @reader = new Reader()
