--- a/spec/hglib_spec.lua Sat Sep 10 15:14:24 2016 +0800
+++ b/spec/hglib_spec.lua Sat Sep 10 18:57:47 2016 +0800
it('can connect using just file handles', function()
local rh = io.open('spec/data/hello', 'rb')
local client = hglib.Client.connect(rh, nil)
+ assert.are_equal('closed file', io.type(rh))
assert.is_true(client.capabilities.getencoding)
assert.is_true(client.capabilities.runcommand)
assert.are_equal('UTF-8', client.encoding)