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/pack_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/pack_spec.lua')
| -rw-r--r-- | spec/pack_spec.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index a07e7ed2..416184a8 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
| @@ -1,8 +1,8 @@ | |||
| 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 | ||
| 3 | 4 | ||
| 4 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
| 5 | local pack = require("luarocks.pack") | ||
| 6 | 6 | ||
| 7 | local extra_rocks = { | 7 | local extra_rocks = { |
| 8 | "/luasec-0.6-1.rockspec", | 8 | "/luasec-0.6-1.rockspec", |
| @@ -10,12 +10,10 @@ local extra_rocks = { | |||
| 10 | "/luasocket-3.0rc1-1.rockspec" | 10 | "/luasocket-3.0rc1-1.rockspec" |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | expose("LuaRocks pack tests #blackbox #b_pack", function() | 13 | describe("LuaRocks pack tests #blackbox #b_pack", function() |
| 14 | 14 | ||
| 15 | before_each(function() | 15 | before_each(function() |
| 16 | test_env.setup_specs(extra_rocks) | 16 | test_env.setup_specs(extra_rocks) |
| 17 | testing_paths = test_env.testing_paths | ||
| 18 | run = test_env.run | ||
| 19 | end) | 17 | end) |
| 20 | 18 | ||
| 21 | it("LuaRocks pack basic", function() | 19 | it("LuaRocks pack basic", function() |
