diff options
| author | Hisham <hisham@gobolinux.org> | 2016-07-11 01:15:41 -0300 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-07-11 01:15:41 -0300 |
| commit | 994a041b4f1348564f390f3f4d8ec040c8edb4b8 (patch) | |
| tree | 128d264d86576e0b62225056769b7097a745b822 /spec/help_spec.lua | |
| parent | 41eccd4ca6fe51f8174dd43744e7a4bab4daf2cb (diff) | |
| parent | 77b41dd05a870feeb519e930472133f63cf94317 (diff) | |
| download | luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.tar.gz luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.tar.bz2 luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.zip | |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'spec/help_spec.lua')
| -rw-r--r-- | spec/help_spec.lua | 27 |
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..0d41e2e9 --- /dev/null +++ b/spec/help_spec.lua | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | local test_env = require("test/test_environment") | ||
| 2 | local run = test_env.run | ||
| 3 | |||
| 4 | test_env.unload_luarocks() | ||
| 5 | |||
| 6 | describe("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("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("help config")) | ||
| 22 | end) | ||
| 23 | |||
| 24 | it("LuaRocks-admin help with no flags/arguments", function() | ||
| 25 | assert.is_true(run.luarocks_admin_bool("help")) | ||
| 26 | end) | ||
| 27 | end) | ||
