diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-09 16:35:33 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-09 16:35:33 +0400 |
| commit | 8e55688c191827a9b2e9c499a95c888078979e8c (patch) | |
| tree | aeaf8c1886c949e8e357b59a04cebc3be3930bce /spec/remove_spec.lua | |
| parent | 5af7e0d7c2dcf65e41ae8523f3771e9528be32a7 (diff) | |
| parent | a05ba7ce42ae4e42f80b5cacdd8770ae5e6cc04b (diff) | |
| download | luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.tar.gz luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.tar.bz2 luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.zip | |
Merge pull request #583 from mpeterv/adjust-new-tests
Minor changes and fixes for new test suite
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) |
