diff options
Diffstat (limited to 'spec/fetch_spec.lua')
| -rw-r--r-- | spec/fetch_spec.lua | 3 |
1 files changed, 2 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") | |||
| 2 | local git_repo = require("spec.util.git_repo") | 2 | 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 | local fetch = require("luarocks.fetch") | 6 | local fetch = require("luarocks.fetch") |
| 6 | local path = require("luarocks.path") | 7 | local path = require("luarocks.path") |
| 7 | local lfs = require("lfs") | 8 | local lfs = require("lfs") |
| @@ -11,7 +12,7 @@ local get_tmp_path = test_env.get_tmp_path | |||
| 11 | describe("Luarocks fetch test #unit", function() | 12 | describe("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() |
