From f4fda82fdef92e31cf9be6478793ee648eaea557 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 21 Feb 2024 22:30:40 -0300 Subject: tests: introduce quick tests --- spec/config_spec.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'spec/config_spec.lua') diff --git a/spec/config_spec.lua b/spec/config_spec.lua index 98fcb24c..9615f050 100644 --- a/spec/config_spec.lua +++ b/spec/config_spec.lua @@ -115,22 +115,6 @@ describe("LuaRocks config tests #integration", function() assert.is_false(run.luarocks_bool("config --system-config")) end) - it("outputs the path of the system config", function() - lfs.mkdir(testing_paths.testing_lrprefix) - lfs.mkdir(testing_paths.testing_lrprefix .. "/etc/") - lfs.mkdir(scdir) - - local sysconfig = io.open(configfile, "w+") - sysconfig:write(" ") - sysconfig:close() - finally(function() - os.remove(configfile) - end) - - local output = run.luarocks("config --system-config") - assert.are.same(configfile, output) - end) - it("fails if system config is invalid", function() lfs.mkdir(testing_paths.testing_lrprefix) lfs.mkdir(testing_paths.testing_lrprefix .. "/etc/") -- cgit v1.2.3-55-g6feb