diff options
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")) |