diff options
Diffstat (limited to 'spec/remove_spec.lua')
-rw-r--r-- | spec/remove_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua index 41c6348a..c7f83b95 100644 --- a/spec/remove_spec.lua +++ b/spec/remove_spec.lua | |||
@@ -44,8 +44,11 @@ describe("LuaRocks remove tests #blackbox #b_remove", function() | |||
44 | end) | 44 | end) |
45 | 45 | ||
46 | describe("LuaRocks remove more complex tests", function() | 46 | describe("LuaRocks remove more complex tests", function() |
47 | before_each(function() | ||
48 | assert.is_true(test_env.need_rock("luasocket")) | ||
49 | end) | ||
50 | |||
47 | it("LuaRocks remove fail, break dependencies", function() | 51 | it("LuaRocks remove fail, break dependencies", function() |
48 | assert.is_true(test_env.need_luasocket()) | ||
49 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) | 52 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) |
50 | assert.is_true(run.luarocks_bool("build lualogging")) | 53 | assert.is_true(run.luarocks_bool("build lualogging")) |
51 | 54 | ||
@@ -54,7 +57,6 @@ describe("LuaRocks remove tests #blackbox #b_remove", function() | |||
54 | end) | 57 | end) |
55 | 58 | ||
56 | it("LuaRocks remove force", function() | 59 | it("LuaRocks remove force", function() |
57 | assert.is_true(test_env.need_luasocket()) | ||
58 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) | 60 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) |
59 | assert.is_true(run.luarocks_bool("build lualogging")) | 61 | assert.is_true(run.luarocks_bool("build lualogging")) |
60 | 62 | ||
@@ -64,7 +66,6 @@ describe("LuaRocks remove tests #blackbox #b_remove", function() | |||
64 | end) | 66 | end) |
65 | 67 | ||
66 | it("LuaRocks remove force fast", function() | 68 | it("LuaRocks remove force fast", function() |
67 | assert.is_true(test_env.need_luasocket()) | ||
68 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) | 69 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) |
69 | assert.is_true(run.luarocks_bool("build lualogging")) | 70 | assert.is_true(run.luarocks_bool("build lualogging")) |
70 | 71 | ||