aboutsummaryrefslogtreecommitdiff
path: root/spec/dir_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/dir_spec.lua')
-rw-r--r--spec/dir_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/dir_spec.lua b/spec/dir_spec.lua
index 27966777..08fb6e23 100644
--- a/spec/dir_spec.lua
+++ b/spec/dir_spec.lua
@@ -1,10 +1,22 @@
1local test_env = require("spec.util.test_env") 1local test_env = require("spec.util.test_env")
2local testing_paths = test_env.testing_paths
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4test_env.setup_specs() 5test_env.setup_specs()
5local dir = require("luarocks.dir") 6local dir = require("luarocks.dir")
6 7
7describe("Luarocks dir test #unit", function() 8describe("Luarocks dir test #unit", function()
9 local runner
10
11 setup(function()
12 runner = require("luacov.runner")
13 runner.init(testing_paths.testrun_dir .. "/luacov.config")
14 runner.tick = true
15 end)
16
17 teardown(function()
18 runner.shutdown()
19 end)
8 20
9 describe("dir.is_basic_protocol", function() 21 describe("dir.is_basic_protocol", function()
10 it("checks whether the arguments represent a valid protocol and returns the result of the check", function() 22 it("checks whether the arguments represent a valid protocol and returns the result of the check", function()