Download:
child 15:071a5ec83dcd
parent 13:0fbc8c1732ed
14:1ee9475523f1
Anton Shestakov <av6@dwimlabs.net>, Fri, 09 Sep 2016 13:24:38 +0800
spec: test passing extra flags to version command

1 файлов изменено, 2 вставок(+), 1 удалений(-) [+]
spec/hglib_spec.lua file | annotate | diff | comparison | revisions
--- a/spec/hglib_spec.lua Fri Sep 09 12:24:59 2016 +0800
+++ b/spec/hglib_spec.lua Fri Sep 09 13:24:38 2016 +0800
@@ -51,10 +51,11 @@
it('can use runcommand to request version', function()
local client = hglib.Client.open()
- local code, o, e, d = client:runcommand('version')
+ local code, o, e, d = client:runcommand('version', '--verbose')
client:close()
assert.are_equal(0, code)
assert.is_not_nil(o:find('Mercurial Distributed SCM'))
+ assert.is_not_nil(o:find('Enabled extensions:'))
assert.are_equal('', e)
assert.are_equal('', d)
end)