diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-19 09:58:36 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 15:51:09 -0300 |
commit | a55f09fae00cb3c575f926eda4d76e81ff37b2ba (patch) | |
tree | c36d2d475549f76805b3b9bfd08f1429f032e5ac /spec/fetch_spec.lua | |
parent | 392f67d65a950fcf08a08d10d21e80f359160262 (diff) | |
download | luarocks-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.lua | 2 |
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 | ||
4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
5 | test_env.setup_specs() | 5 | test_env.setup_specs() |
6 | local fs = require("luarocks.fs") | ||
6 | local fetch = require("luarocks.fetch") | 7 | local fetch = require("luarocks.fetch") |
7 | local fs = require("luarocks.fs") | 8 | local fs = require("luarocks.fs") |
8 | local path = require("luarocks.path") | 9 | local 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") |