diff options
Diffstat (limited to 'spec/remove_spec.lua')
-rw-r--r-- | spec/remove_spec.lua | 9 |
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 @@ | |||
1 | local test_env = require("test/test_environment") | 1 | local test_env = require("test/test_environment") |
2 | local lfs = require("lfs") | 2 | local lfs = require("lfs") |
3 | local run = test_env.run | ||
4 | local testing_paths = test_env.testing_paths | ||
3 | 5 | ||
4 | test_env.unload_luarocks() | 6 | test_env.unload_luarocks() |
5 | local remove = require("luarocks.remove") | ||
6 | 7 | ||
7 | local extra_rocks = { | 8 | local 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 | ||
14 | expose("LuaRocks remove tests #blackbox #b_remove", function() | 15 | describe("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) |
85 | end) \ No newline at end of file | 84 | end) |