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

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

  beforeEach ->
    @reader = new Reader()


    describe '#getUrlStream', ->
      beforeEach (done) ->
        @reader.getUrlStream @url, (err, @stream) =>
          done()

      it 'returns a stream', ->
