aboutsummaryrefslogtreecommitdiff
path: root/spec/new_version_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/new_version_spec.lua')
-rw-r--r--spec/new_version_spec.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua
index d47cfd05..18271176 100644
--- a/spec/new_version_spec.lua
+++ b/spec/new_version_spec.lua
@@ -3,8 +3,6 @@ local lfs = require("lfs")
3local run = test_env.run 3local run = test_env.run
4local testing_paths = test_env.testing_paths 4local testing_paths = test_env.testing_paths
5 5
6test_env.unload_luarocks()
7
8local extra_rocks = { 6local extra_rocks = {
9 "/abelhas-1.1-1.rockspec", 7 "/abelhas-1.1-1.rockspec",
10 "/lpeg-${LPEG}.rockspec" 8 "/lpeg-${LPEG}.rockspec"
@@ -12,7 +10,7 @@ local extra_rocks = {
12 10
13describe("luarocks new_version #integration", function() 11describe("luarocks new_version #integration", function()
14 12
15 setup(function() 13 lazy_setup(function()
16 test_env.setup_specs(extra_rocks) 14 test_env.setup_specs(extra_rocks)
17 end) 15 end)
18 16
@@ -69,10 +67,11 @@ describe("luarocks new_version #integration", function()
69 end) 67 end)
70 68
71 describe("remote tests #mock", function() 69 describe("remote tests #mock", function()
72 setup(function() 70 lazy_setup(function()
71 test_env.setup_specs(extra_rocks, "mock")
73 test_env.mock_server_init() 72 test_env.mock_server_init()
74 end) 73 end)
75 teardown(function() 74 lazy_teardown(function()
76 test_env.mock_server_done() 75 test_env.mock_server_done()
77 end) 76 end)
78 it("with remote spec", function() 77 it("with remote spec", function()