aboutsummaryrefslogtreecommitdiff
path: root/spec/remove_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2016-07-14 14:43:42 -0300
committerGitHub <noreply@github.com>2016-07-14 14:43:42 -0300
commit36388709d628a76c450eed20b67f008faefc36cb (patch)
treee9e8a6959ecafcd8355b8b9614f65a613fe6ddb4 /spec/remove_spec.lua
parent0f63a95e991435c769584abd01b16bd748a1434b (diff)
parent48b98f0c099dc621e1f93cccf9a9e03ff75649b6 (diff)
downloadluarocks-36388709d628a76c450eed20b67f008faefc36cb.tar.gz
luarocks-36388709d628a76c450eed20b67f008faefc36cb.tar.bz2
luarocks-36388709d628a76c450eed20b67f008faefc36cb.zip
Merge pull request #588 from robooo/new-tests
New tests
Diffstat (limited to 'spec/remove_spec.lua')
-rw-r--r--spec/remove_spec.lua7
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