From f2daf51d17f696bebf6db59a53e26eee579bb5a7 Mon Sep 17 00:00:00 2001 From: Hisham Date: Thu, 8 Sep 2016 14:38:37 -0300 Subject: Fix test to match new behavior of `pack`. --- spec/pack_spec.lua | 5 +++-- 1 file 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() assert.is_false(run.luarocks_bool("pack /non/exist/temp.manif")) end) - it("LuaRocks pack specify which version of rock", function() + it("LuaRocks pack detects latest version version of rock", function() assert.is_true(run.luarocks_bool("install say 1.2")) assert.is_true(run.luarocks_bool("install luassert")) assert.is_true(run.luarocks_bool("install say 1.0")) - assert.is_false(run.luarocks_bool("pack say")) + assert.is_truthy(lfs.attributes("say-1.2-1.all.rock")) + assert.is_true(test_env.remove_files(lfs.currentdir(), "say-")) end) it("LuaRocks pack src", function() -- cgit v1.2.3-55-g6feb