diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-09-11 16:06:15 -0400 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-09-11 16:06:40 -0400 |
commit | 8d95d5607fdd829d4b77c5225fd6b9015b1df034 (patch) | |
tree | 0102dcf95b0ce7b4a3c3164bbb5524f817d6fa5f /spec/loader_spec.lua | |
parent | 4adac26b6f214ccd0adab99c0ac72ab84bd77935 (diff) | |
download | luarocks-8d95d5607fdd829d4b77c5225fd6b9015b1df034.tar.gz luarocks-8d95d5607fdd829d4b77c5225fd6b9015b1df034.tar.bz2 luarocks-8d95d5607fdd829d4b77c5225fd6b9015b1df034.zip |
Tests: add regression test for luarocks.loader startup
Diffstat (limited to 'spec/loader_spec.lua')
-rw-r--r-- | spec/loader_spec.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/loader_spec.lua b/spec/loader_spec.lua new file mode 100644 index 00000000..0f946b72 --- /dev/null +++ b/spec/loader_spec.lua | |||
@@ -0,0 +1,10 @@ | |||
1 | local test_env = require("spec.util.test_env") | ||
2 | local run = test_env.run | ||
3 | |||
4 | describe("luarocks.loader", function() | ||
5 | describe("#unit", function() | ||
6 | it("starts", function() | ||
7 | assert(run.lua_bool([[-e "require 'luarocks.loader'; print(package.loaded['luarocks.loaded'])"]])) | ||
8 | end) | ||
9 | end) | ||
10 | end) | ||