diff options
Diffstat (limited to 'spec/make_spec.lua')
-rw-r--r-- | spec/make_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/make_spec.lua b/spec/make_spec.lua index ab2d49a3..4c406c68 100644 --- a/spec/make_spec.lua +++ b/spec/make_spec.lua | |||
@@ -35,7 +35,7 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
35 | 35 | ||
36 | -- test it | 36 | -- test it |
37 | assert.is_true(run.luarocks_bool("show luasocket")) | 37 | assert.is_true(run.luarocks_bool("show luasocket")) |
38 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket/3.0rc1-2/luasocket-3.0rc1-2.rockspec")) | 38 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasocket/3.0rc1-2/luasocket-3.0rc1-2.rockspec")) |
39 | 39 | ||
40 | -- delete downloaded and unpacked files | 40 | -- delete downloaded and unpacked files |
41 | lfs.chdir(testing_paths.luarocks_dir) | 41 | lfs.chdir(testing_paths.luarocks_dir) |
@@ -63,7 +63,7 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
63 | assert.is_true(run.luarocks_bool("make")) | 63 | assert.is_true(run.luarocks_bool("make")) |
64 | 64 | ||
65 | assert.is_true(run.luarocks_bool("show lxsh")) | 65 | assert.is_true(run.luarocks_bool("show lxsh")) |
66 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh/0.8.6-3/lxsh-0.8.6-3.rockspec")) | 66 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-3/lxsh-0.8.6-3.rockspec")) |
67 | end) | 67 | end) |
68 | 68 | ||
69 | it("LuaRocks make unnamed rockspec", function() | 69 | it("LuaRocks make unnamed rockspec", function() |
@@ -71,7 +71,7 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
71 | assert.is_true(run.luarocks_bool("make")) | 71 | assert.is_true(run.luarocks_bool("make")) |
72 | 72 | ||
73 | assert.is_true(run.luarocks_bool("show lxsh")) | 73 | assert.is_true(run.luarocks_bool("show lxsh")) |
74 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 74 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
75 | os.remove("rockspec") | 75 | os.remove("rockspec") |
76 | end) | 76 | end) |
77 | 77 | ||
@@ -81,7 +81,7 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
81 | assert.is.truthy(output:match("Error: Inconsistency between rockspec filename")) | 81 | assert.is.truthy(output:match("Error: Inconsistency between rockspec filename")) |
82 | 82 | ||
83 | assert.is_false(run.luarocks_bool("show lxsh")) | 83 | assert.is_false(run.luarocks_bool("show lxsh")) |
84 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 84 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
85 | end) | 85 | end) |
86 | 86 | ||
87 | it("LuaRocks make ambiguous unnamed rockspec", function() | 87 | it("LuaRocks make ambiguous unnamed rockspec", function() |
@@ -91,7 +91,7 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
91 | assert.is.truthy(output:match("Error: Please specify which rockspec file to use")) | 91 | assert.is.truthy(output:match("Error: Please specify which rockspec file to use")) |
92 | 92 | ||
93 | assert.is_false(run.luarocks_bool("show lxsh")) | 93 | assert.is_false(run.luarocks_bool("show lxsh")) |
94 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 94 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
95 | end) | 95 | end) |
96 | 96 | ||
97 | it("LuaRocks make pack binary rock", function() | 97 | it("LuaRocks make pack binary rock", function() |