 				@docLines.should.eql lines
 				done()
 
+	describe "calling node zlib.gzip directly", ->
+		it "should compress the string 'hello world' within the timeout", (done) ->
+			zlib.gzip "hello world", done
+
+		it "should compress a 10k string within the timeout", (done) ->
+			text = ""
+			while text.length < 10*1024
+				text = text + "helloworld"
+			zlib.gzip text, done
+
 	describe "for a large document (with compression enabled)", ->
 		rclient = null
 		beforeEach (done) ->

			@docLines = []
			while @docLines.join('').length <= MIN_SIZE
				@docLines.push "this is a long line in a long document"
			@callback = sinon.stub()
			@RedisManager.setDocument @doc_id, @docLines, @version, () =>
				@callback()

zipModulePath = "../../../../app/js/ZipManager"
redisModulePath = "../../../../app/js/RedisManager"
SandboxedModule = require('sandboxed-module')
zlib = require('zlib')

MIN_SIZE = 9999

