From 47a9e7571f5aefd48d5e8d168bd56f07e296b18e Mon Sep 17 00:00:00 2001 From: roboo Date: Mon, 11 Jul 2016 21:29:37 +0200 Subject: Update new_version, pack tests --- spec/pack_spec.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/pack_spec.lua') diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 416184a8..aa827682 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua @@ -1,6 +1,7 @@ local test_env = require("test/test_environment") local lfs = require("lfs") local run = test_env.run +local testing_paths = test_env.testing_paths test_env.unload_luarocks() @@ -21,6 +22,10 @@ describe("LuaRocks pack tests #blackbox #b_pack", function() assert.is_true(run.luarocks_bool("pack luacov")) assert.is_true(test_env.remove_files(lfs.currentdir(), "luacov-")) end) + + it("LuaRocks pack invalid rockspec", function() + assert.is_false(run.luarocks_bool("pack " .. testing_paths.testing_dir .. "/testfiles/invaild_validate-args-1.5.4-1.rockspec")) + end) it("LuaRocks pack src", function() assert.is_true(run.luarocks_bool("install luasec")) -- cgit v1.2.3-55-g6feb