aboutsummaryrefslogtreecommitdiff
path: root/spec/fetch_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fetch_spec.lua')
-rw-r--r--spec/fetch_spec.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua
index be138b8c..30709fcb 100644
--- a/spec/fetch_spec.lua
+++ b/spec/fetch_spec.lua
@@ -14,6 +14,17 @@ describe("Luarocks fetch test #unit", function()
14 return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino 14 return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino
15 end 15 end
16 16
17 local runner
18
19 setup(function()
20 runner = require("luacov.runner")
21 runner.init(testing_paths.testrun_dir .. "/luacov.config")
22 end)
23
24 teardown(function()
25 runner.shutdown()
26 end)
27
17 describe("fetch.is_basic_protocol", function() 28 describe("fetch.is_basic_protocol", function()
18 it("checks whether the arguments represent a valid protocol and returns the result of the check", function() 29 it("checks whether the arguments represent a valid protocol and returns the result of the check", function()
19 assert.truthy(fetch.is_basic_protocol("http")) 30 assert.truthy(fetch.is_basic_protocol("http"))