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, 0 insertions, 11 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua
index 30709fcb..c02c5736 100644
--- a/spec/fetch_spec.lua
+++ b/spec/fetch_spec.lua
@@ -25,17 +25,6 @@ describe("Luarocks fetch test #unit", function()
25 runner.shutdown() 25 runner.shutdown()
26 end) 26 end)
27 27
28 describe("fetch.is_basic_protocol", function()
29 it("checks whether the arguments represent a valid protocol and returns the result of the check", function()
30 assert.truthy(fetch.is_basic_protocol("http"))
31 assert.truthy(fetch.is_basic_protocol("https"))
32 assert.truthy(fetch.is_basic_protocol("ftp"))
33 assert.truthy(fetch.is_basic_protocol("file"))
34 assert.falsy(fetch.is_basic_protocol("file", true))
35 assert.falsy(fetch.is_basic_protocol("invalid"))
36 end)
37 end)
38
39 describe("fetch.fetch_url #mock", function() 28 describe("fetch.fetch_url #mock", function()
40 setup(function() 29 setup(function()
41 test_env.mock_server_init() 30 test_env.mock_server_init()