aboutsummaryrefslogtreecommitdiff
path: root/spec/remove_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/remove_spec.lua')
-rw-r--r--spec/remove_spec.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua
index a94673a8..41c6348a 100644
--- a/spec/remove_spec.lua
+++ b/spec/remove_spec.lua
@@ -1,8 +1,9 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
3 5
4test_env.unload_luarocks() 6test_env.unload_luarocks()
5local remove = require("luarocks.remove")
6 7
7local extra_rocks = { 8local extra_rocks = {
8 "/abelhas-1.0-1.rockspec", 9 "/abelhas-1.0-1.rockspec",
@@ -11,12 +12,10 @@ local extra_rocks = {
11 "/luasocket-3.0rc1-1.rockspec" 12 "/luasocket-3.0rc1-1.rockspec"
12} 13}
13 14
14expose("LuaRocks remove tests #blackbox #b_remove", function() 15describe("LuaRocks remove tests #blackbox #b_remove", function()
15 16
16 before_each(function() 17 before_each(function()
17 test_env.setup_specs(extra_rocks) 18 test_env.setup_specs(extra_rocks)
18 testing_paths = test_env.testing_paths
19 run = test_env.run
20 end) 19 end)
21 20
22 describe("LuaRocks remove basic tests", function() 21 describe("LuaRocks remove basic tests", function()
@@ -82,4 +81,4 @@ expose("LuaRocks remove tests #blackbox #b_remove", function()
82 it("LuaRocks-admin remove missing", function() 81 it("LuaRocks-admin remove missing", function()
83 assert.is_false(run.luarocks_admin_bool("--server=testing remove")) 82 assert.is_false(run.luarocks_admin_bool("--server=testing remove"))
84 end) 83 end)
85end) \ No newline at end of file 84end)