diff options
author | roboo <robo.karasek@gmail.com> | 2016-07-19 22:56:28 +0200 |
---|---|---|
committer | roboo <robo.karasek@gmail.com> | 2016-07-19 22:56:28 +0200 |
commit | 3945f90b0bd80024294b048a793bae526cad30e2 (patch) | |
tree | c7658afc65573b60db6f94e0f4c9cbcb6fada343 /spec/pack_spec.lua | |
parent | 2af8f114097b2e79d7f92f9b0cea4cacdc2ff853 (diff) | |
download | luarocks-3945f90b0bd80024294b048a793bae526cad30e2.tar.gz luarocks-3945f90b0bd80024294b048a793bae526cad30e2.tar.bz2 luarocks-3945f90b0bd80024294b048a793bae526cad30e2.zip |
Test improvements
Diffstat (limited to 'spec/pack_spec.lua')
-rw-r--r-- | spec/pack_spec.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 78aab9aa..0e5b31c6 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
@@ -24,8 +24,7 @@ describe("LuaRocks pack tests #blackbox #b_pack", function() | |||
24 | end) | 24 | end) |
25 | 25 | ||
26 | it("LuaRocks pack basic", function() | 26 | it("LuaRocks pack basic", function() |
27 | assert.is_true(run.luarocks_bool("list")) | 27 | assert.is_true(run.luarocks_bool(test_env.quiet("pack luacov"))) |
28 | assert.is_true(run.luarocks_bool("pack luacov")) | ||
29 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luacov-")) | 28 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luacov-")) |
30 | end) | 29 | end) |
31 | 30 | ||
@@ -49,9 +48,8 @@ describe("LuaRocks pack tests #blackbox #b_pack", function() | |||
49 | assert.is_false(run.luarocks_bool("pack say")) | 48 | assert.is_false(run.luarocks_bool("pack say")) |
50 | end) | 49 | end) |
51 | 50 | ||
52 | |||
53 | it("LuaRocks pack src", function() | 51 | it("LuaRocks pack src", function() |
54 | assert.is_true(run.luarocks_bool("install luasec")) | 52 | assert.is_true(run.luarocks_bool(test_env.quiet("install luasec"))) |
55 | assert.is_true(run.luarocks_bool("download --rockspec luasocket 3.0rc1-1")) | 53 | assert.is_true(run.luarocks_bool("download --rockspec luasocket 3.0rc1-1")) |
56 | assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-1.rockspec")) | 54 | assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-1.rockspec")) |
57 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-")) | 55 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-")) |