diff options
author | Hisham <hisham@gobolinux.org> | 2016-09-08 14:38:37 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-09-08 14:38:37 -0300 |
commit | f2daf51d17f696bebf6db59a53e26eee579bb5a7 (patch) | |
tree | 016e8df3d0c030d58f1e5274ab2755c8b3c3230e | |
parent | f91fc9a6ef9ef488c709894a29ce63db2bc1e399 (diff) | |
download | luarocks-f2daf51d17f696bebf6db59a53e26eee579bb5a7.tar.gz luarocks-f2daf51d17f696bebf6db59a53e26eee579bb5a7.tar.bz2 luarocks-f2daf51d17f696bebf6db59a53e26eee579bb5a7.zip |
Fix test to match new behavior of `pack`.
-rw-r--r-- | spec/pack_spec.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 3c9ed9fd..aa84be8d 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
@@ -41,11 +41,12 @@ describe("LuaRocks pack tests #blackbox #b_pack", function() | |||
41 | assert.is_false(run.luarocks_bool("pack /non/exist/temp.manif")) | 41 | assert.is_false(run.luarocks_bool("pack /non/exist/temp.manif")) |
42 | end) | 42 | end) |
43 | 43 | ||
44 | it("LuaRocks pack specify which version of rock", function() | 44 | it("LuaRocks pack detects latest version version of rock", function() |
45 | assert.is_true(run.luarocks_bool("install say 1.2")) | 45 | assert.is_true(run.luarocks_bool("install say 1.2")) |
46 | assert.is_true(run.luarocks_bool("install luassert")) | 46 | assert.is_true(run.luarocks_bool("install luassert")) |
47 | assert.is_true(run.luarocks_bool("install say 1.0")) | 47 | assert.is_true(run.luarocks_bool("install say 1.0")) |
48 | assert.is_false(run.luarocks_bool("pack say")) | 48 | assert.is_truthy(lfs.attributes("say-1.2-1.all.rock")) |
49 | assert.is_true(test_env.remove_files(lfs.currentdir(), "say-")) | ||
49 | end) | 50 | end) |
50 | 51 | ||
51 | it("LuaRocks pack src", function() | 52 | it("LuaRocks pack src", function() |