From 5155816b7b925dec5d5feb1568b1d7ceb00938b9 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Mon, 3 Feb 2025 21:29:42 +0100 Subject: fetch tarball --- spec/help_spec.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 spec/help_spec.lua (limited to 'spec/help_spec.lua') diff --git a/spec/help_spec.lua b/spec/help_spec.lua new file mode 100644 index 0000000..e13f1c3 --- /dev/null +++ b/spec/help_spec.lua @@ -0,0 +1,25 @@ +local test_env = require("spec.util.test_env") +local run = test_env.run + +describe("luarocks help #integration", function() + + before_each(function() + test_env.setup_specs() + end) + + it("with no flags/arguments", function() + assert.is_true(run.luarocks_bool("help")) + end) + + it("invalid argument", function() + assert.is_false(run.luarocks_bool("help invalid")) + end) + + it("config", function() + assert.is_true(run.luarocks_bool("help config")) + end) + + it("luarocks-admin help with no flags/arguments", function() + assert.is_true(run.luarocks_admin_bool(test_env.quiet("help"))) + end) +end) -- cgit v1.2.3