aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/fetch_spec.lua3
-rw-r--r--spec/fs_spec.lua1
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua
index fa614349..be138b8c 100644
--- a/spec/fetch_spec.lua
+++ b/spec/fetch_spec.lua
@@ -2,6 +2,7 @@ local test_env = require("spec.util.test_env")
2local git_repo = require("spec.util.git_repo") 2local git_repo = require("spec.util.git_repo")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5test_env.setup_specs()
5local fetch = require("luarocks.fetch") 6local fetch = require("luarocks.fetch")
6local path = require("luarocks.path") 7local path = require("luarocks.path")
7local lfs = require("lfs") 8local lfs = require("lfs")
@@ -11,7 +12,7 @@ local get_tmp_path = test_env.get_tmp_path
11describe("Luarocks fetch test #unit", function() 12describe("Luarocks fetch test #unit", function()
12 local are_same_files = function(file1, file2) 13 local are_same_files = function(file1, file2)
13 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
14 end 15 end
15 16
16 describe("fetch.is_basic_protocol", function() 17 describe("fetch.is_basic_protocol", function()
17 it("checks whether the arguments represent a valid protocol and returns the result of the check", function() 18 it("checks whether the arguments represent a valid protocol and returns the result of the check", function()
diff --git a/spec/fs_spec.lua b/spec/fs_spec.lua
index c0679b34..2d0059b6 100644
--- a/spec/fs_spec.lua
+++ b/spec/fs_spec.lua
@@ -1,6 +1,7 @@
1local test_env = require("spec.util.test_env") 1local test_env = require("spec.util.test_env")
2 2
3test_env.unload_luarocks() 3test_env.unload_luarocks()
4test_env.setup_specs()
4local fs = require("luarocks.fs") 5local fs = require("luarocks.fs")
5local lfs = require("lfs") 6local lfs = require("lfs")
6local is_win = test_env.TEST_TARGET_OS == "windows" 7local is_win = test_env.TEST_TARGET_OS == "windows"