aboutsummaryrefslogtreecommitdiff
path: root/spec/deps_spec.lua
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-07-09 16:35:33 +0400
committerGitHub <noreply@github.com>2016-07-09 16:35:33 +0400
commit8e55688c191827a9b2e9c499a95c888078979e8c (patch)
treeaeaf8c1886c949e8e357b59a04cebc3be3930bce /spec/deps_spec.lua
parent5af7e0d7c2dcf65e41ae8523f3771e9528be32a7 (diff)
parenta05ba7ce42ae4e42f80b5cacdd8770ae5e6cc04b (diff)
downloadluarocks-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/deps_spec.lua')
-rw-r--r--spec/deps_spec.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/deps_spec.lua b/spec/deps_spec.lua
index ce784080..c1bd404d 100644
--- a/spec/deps_spec.lua
+++ b/spec/deps_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 deps = require("luarocks.deps")
6 7
7local extra_rocks = { 8local extra_rocks = {
8 "/lxsh-0.8.6-2.src.rock", 9 "/lxsh-0.8.6-2.src.rock",
@@ -12,12 +13,10 @@ local extra_rocks = {
12 "/lpeg-0.12-1.src.rock" 13 "/lpeg-0.12-1.src.rock"
13} 14}
14 15
15expose("LuaRocks deps tests #blackbox #b_deps", function() 16describe("LuaRocks deps tests #blackbox #b_deps", function()
16 17
17 before_each(function() 18 before_each(function()
18 test_env.setup_specs(extra_rocks) 19 test_env.setup_specs(extra_rocks)
19 testing_paths = test_env.testing_paths
20 run = test_env.run
21 end) 20 end)
22 21
23 it("LuaRocks deps mode one", function() 22 it("LuaRocks deps mode one", function()
@@ -112,4 +111,4 @@ expose("LuaRocks deps tests #blackbox #b_deps", function()
112 assert.is.falsy(lfs.attributes(testing_paths.testing_tree .. "/lib/luarocks/rocks/lxsh")) 111 assert.is.falsy(lfs.attributes(testing_paths.testing_tree .. "/lib/luarocks/rocks/lxsh"))
113 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh")) 112 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh"))
114 end) 113 end)
115end) \ No newline at end of file 114end)