1:f765e0e5649b
Anton Shestakov <av6@dwimlabs.net>, Wed, 07 Sep 2016 21:15:06 +0800
.luacheckrc: set globals to min+busted for tests, enable error codes

next change 2:2038aaa338fb
previous change 0:616025111516

spec/hglib_spec.lua

Permissions: -rw-r--r--

Other formats: Feeds:
local hglib = require('hglib')
describe('hglib client', function()
it('can read hello', function()
local rh = io.open('spec/data/hello', 'rb')
local client = hglib.Client.connect(rh, nil)
client:read_hello()
rh:close()
assert.is_true(client.capabilities.getencoding)
assert.is_true(client.capabilities.runcommand)
assert.are_equal('UTF-8', client.encoding)
assert.are_equal(3615, client.pid)
assert.are_equal(3615, client.pgid)
end)
end)