From 1656a4c7a2dac25d2dd2e5d2211ce0e7eb000b19 Mon Sep 17 00:00:00 2001 From: roboo Date: Thu, 14 Jul 2016 00:29:01 +0200 Subject: need_rock() added, new flag noreset environment --- spec/remove_spec.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'spec/remove_spec.lua') 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() end) describe("LuaRocks remove more complex tests", function() + before_each(function() + assert.is_true(test_env.need_rock("luasocket")) + end) + it("LuaRocks remove fail, break dependencies", function() - assert.is_true(test_env.need_luasocket()) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) assert.is_true(run.luarocks_bool("build lualogging")) @@ -54,7 +57,6 @@ describe("LuaRocks remove tests #blackbox #b_remove", function() end) it("LuaRocks remove force", function() - assert.is_true(test_env.need_luasocket()) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) assert.is_true(run.luarocks_bool("build lualogging")) @@ -64,7 +66,6 @@ describe("LuaRocks remove tests #blackbox #b_remove", function() end) it("LuaRocks remove force fast", function() - assert.is_true(test_env.need_luasocket()) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) assert.is_true(run.luarocks_bool("build lualogging")) -- cgit v1.2.3-55-g6feb