diff options
Diffstat (limited to 'spec/pack_spec.lua')
| -rw-r--r-- | spec/pack_spec.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 67ed5f3f..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,10 +48,9 @@ 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")) | 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-")) |
| 58 | end) | 56 | end) |
