diff options
Diffstat (limited to 'spec/fetch_spec.lua')
-rw-r--r-- | spec/fetch_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua index 5f518e4d..79b160c1 100644 --- a/spec/fetch_spec.lua +++ b/spec/fetch_spec.lua | |||
@@ -3,7 +3,6 @@ local git_repo = require("spec.util.git_repo") | |||
3 | 3 | ||
4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
5 | local fetch = require("luarocks.fetch") | 5 | local fetch = require("luarocks.fetch") |
6 | local vers = require("luarocks.vers") | ||
7 | 6 | ||
8 | describe("Luarocks fetch test #whitebox #w_fetch", function() | 7 | describe("Luarocks fetch test #whitebox #w_fetch", function() |
9 | it("Fetch url to base dir", function() | 8 | it("Fetch url to base dir", function() |
@@ -30,12 +29,14 @@ describe("Luarocks fetch test #whitebox #w_fetch", function() | |||
30 | 29 | ||
31 | it("from #git", function() | 30 | it("from #git", function() |
32 | local rockspec = { | 31 | local rockspec = { |
33 | format_is_at_least = vers.format_is_at_least, | 32 | format_is_at_least = function() |
33 | return true | ||
34 | end, | ||
34 | name = "testrock", | 35 | name = "testrock", |
35 | version = "dev-1", | 36 | version = "dev-1", |
36 | source = { | 37 | source = { |
37 | protocol = "git", | 38 | protocol = "git", |
38 | url = "git://localhost:20000/testrock", | 39 | url = "git://localhost/testrock", |
39 | }, | 40 | }, |
40 | variables = { | 41 | variables = { |
41 | GIT = "git", | 42 | GIT = "git", |