--- a/spec/hglib_spec.lua Fri Sep 09 13:24:38 2016 +0800
+++ b/spec/hglib_spec.lua Fri Sep 09 15:34:28 2016 +0800
assert.is_not_nil(e:find('unknown command'))
+ it('can use runcommand to inspect this repo', function()
+ local client = hglib.Client.open('.')
+ local code, o, e, d = client:runcommand('log', '-r0')
+ assert.are_equal(0, code)
+ assert.is_not_nil(o:find('hglib: absolute basics'))
+ assert.are_equal('', e)
+ assert.are_equal('', d)