aboutsummaryrefslogtreecommitdiff
path: root/spec/fetch_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-06-19 09:58:36 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-07-01 15:51:09 -0300
commita55f09fae00cb3c575f926eda4d76e81ff37b2ba (patch)
treec36d2d475549f76805b3b9bfd08f1429f032e5ac /spec/fetch_spec.lua
parent392f67d65a950fcf08a08d10d21e80f359160262 (diff)
downloadluarocks-a55f09fae00cb3c575f926eda4d76e81ff37b2ba.tar.gz
luarocks-a55f09fae00cb3c575f926eda4d76e81ff37b2ba.tar.bz2
luarocks-a55f09fae00cb3c575f926eda4d76e81ff37b2ba.zip
fs: make module loading side-effect free, require explicit init()
Diffstat (limited to 'spec/fetch_spec.lua')
-rw-r--r--spec/fetch_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua
index ce4cfb56..6e00bc22 100644
--- a/spec/fetch_spec.lua
+++ b/spec/fetch_spec.lua
@@ -3,6 +3,7 @@ local git_repo = require("spec.util.git_repo")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5test_env.setup_specs() 5test_env.setup_specs()
6local fs = require("luarocks.fs")
6local fetch = require("luarocks.fetch") 7local fetch = require("luarocks.fetch")
7local fs = require("luarocks.fs") 8local fs = require("luarocks.fs")
8local path = require("luarocks.path") 9local path = require("luarocks.path")
@@ -20,6 +21,7 @@ describe("Luarocks fetch test #unit #mock", function()
20 local runner 21 local runner
21 22
22 setup(function() 23 setup(function()
24 fs.init()
23 test_env.mock_server_init() 25 test_env.mock_server_init()
24 26
25 runner = require("luacov.runner") 27 runner = require("luacov.runner")