diff options
Diffstat (limited to 'spec/dir_spec.lua')
-rw-r--r-- | spec/dir_spec.lua | 12 |
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 @@ | |||
1 | local test_env = require("spec.util.test_env") | 1 | local test_env = require("spec.util.test_env") |
2 | local testing_paths = test_env.testing_paths | ||
2 | 3 | ||
3 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
4 | test_env.setup_specs() | 5 | test_env.setup_specs() |
5 | local dir = require("luarocks.dir") | 6 | local dir = require("luarocks.dir") |
6 | 7 | ||
7 | describe("Luarocks dir test #unit", function() | 8 | describe("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() |