aboutsummaryrefslogtreecommitdiff
path: root/spec/help_spec.lua
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-07-28 17:24:15 -0300
committerHisham <hisham@gobolinux.org>2016-07-28 17:24:15 -0300
commitaccce73cf90bde70baa3d8101b76ca56b0cb0720 (patch)
tree705bb1ba44cd07f9b701cb8d6cf969d7bb48fd72 /spec/help_spec.lua
parent5f5b26206068ba597091bb6fc22d8d63c0fef408 (diff)
parent67a737310b31eed8d1c38eb0e34ff4b6fc411731 (diff)
downloadluarocks-accce73cf90bde70baa3d8101b76ca56b0cb0720.tar.gz
luarocks-accce73cf90bde70baa3d8101b76ca56b0cb0720.tar.bz2
luarocks-accce73cf90bde70baa3d8101b76ca56b0cb0720.zip
Merge branch 'master' into luarocks-3
Diffstat (limited to 'spec/help_spec.lua')
-rw-r--r--spec/help_spec.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/help_spec.lua b/spec/help_spec.lua
new file mode 100644
index 00000000..88aa5030
--- /dev/null
+++ b/spec/help_spec.lua
@@ -0,0 +1,27 @@
1local test_env = require("test/test_environment")
2local run = test_env.run
3
4test_env.unload_luarocks()
5
6describe("LuaRocks help tests #blackbox #b_help", function()
7
8 before_each(function()
9 test_env.setup_specs()
10 end)
11
12 it("LuaRocks help with no flags/arguments", function()
13 assert.is_true(run.luarocks_bool(test_env.quiet("help")))
14 end)
15
16 it("LuaRocks help invalid argument", function()
17 assert.is_false(run.luarocks_bool("help invalid"))
18 end)
19
20 it("LuaRocks help config", function()
21 assert.is_true(run.luarocks_bool(test_env.quiet("help config")))
22 end)
23
24 it("LuaRocks-admin help with no flags/arguments", function()
25 assert.is_true(run.luarocks_admin_bool(test_env.quiet("help")))
26 end)
27end)