diff options
| author | Hisham <hisham@gobolinux.org> | 2016-10-30 23:32:30 -0200 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-10-30 23:32:30 -0200 |
| commit | 27be765c4a846c0d4e970e154b29cbab1a833738 (patch) | |
| tree | 1436b7eed4dc61a8b9df0cfed512b477d9a8f8ac /spec/unpack_spec.lua | |
| parent | ba1ba4be6e0ecc6936c49fae38c71e22250ceb65 (diff) | |
| parent | f8bd89d27323403dd9de9772a7974b439b37b29d (diff) | |
| download | luarocks-27be765c4a846c0d4e970e154b29cbab1a833738.tar.gz luarocks-27be765c4a846c0d4e970e154b29cbab1a833738.tar.bz2 luarocks-27be765c4a846c0d4e970e154b29cbab1a833738.zip | |
Merge branch 'new-cmd-dir'
Diffstat (limited to 'spec/unpack_spec.lua')
| -rw-r--r-- | spec/unpack_spec.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua index 1a8dfa7e..d629e225 100644 --- a/spec/unpack_spec.lua +++ b/spec/unpack_spec.lua | |||
| @@ -50,7 +50,15 @@ describe("LuaRocks unpack tests #blackbox #b_unpack", function() | |||
| 50 | os.remove("lua-cprint") | 50 | os.remove("lua-cprint") |
| 51 | test_env.remove_dir("cprint-0.1-2") | 51 | test_env.remove_dir("cprint-0.1-2") |
| 52 | end) | 52 | end) |
| 53 | 53 | ||
| 54 | -- #595 luarocks unpack of a git:// rockspec fails to copy the rockspec | ||
| 55 | it("LuaRocks unpack git:// rockspec", function() | ||
| 56 | assert.is_true(run.luarocks_bool("download --rockspec luazip")) | ||
| 57 | assert.is_true(run.luarocks_bool("unpack luazip-1.2.4-1.rockspec")) | ||
| 58 | assert.is_truthy(lfs.attributes("luazip-1.2.4-1/luazip/luazip-1.2.4-1.rockspec")) | ||
| 59 | test_env.remove_dir("luazip-1.2.4-1") | ||
| 60 | end) | ||
| 61 | |||
| 54 | it("LuaRocks unpack binary", function() | 62 | it("LuaRocks unpack binary", function() |
| 55 | assert.is_true(run.luarocks_bool("build cprint")) | 63 | assert.is_true(run.luarocks_bool("build cprint")) |
| 56 | assert.is_true(run.luarocks_bool("pack cprint")) | 64 | assert.is_true(run.luarocks_bool("pack cprint")) |
