From 92dc893e2461b50a2c476bb762b82d303300a290 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 30 Apr 2018 18:19:44 -0300 Subject: Tests: use luassert 1.7.10 in `luarocks test` tests --- spec/test_spec.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/test_spec.lua b/spec/test_spec.lua index 1c45bc6e..f0ec25ce 100644 --- a/spec/test_spec.lua +++ b/spec/test_spec.lua @@ -12,7 +12,7 @@ local extra_rocks = { "/luasystem-0.2.1-0.src.rock", "/dkjson-2.5-2.src.rock", "/say-1.3-1.rockspec", - "/luassert-1.7.9-0.rockspec", + "/luassert-1.7.10-0.rockspec", "/lua-term-0.7-1.rockspec", "/penlight-1.5.4-1.rockspec", "/mediator_lua-1.1.2-0.rockspec", @@ -39,16 +39,16 @@ describe("luarocks test #blackbox #b_test", function() finally(function() -- delete downloaded and unpacked files lfs.chdir(testing_paths.testrun_dir) - test_env.remove_dir("luassert-1.7.9-0") - os.remove("luassert-1.7.9-0.rockspec") + test_env.remove_dir("luassert-1.7.10-0") + os.remove("luassert-1.7.10-0.rockspec") end) -- make luassert - assert.is_true(run.luarocks_bool("download --rockspec luassert 1.7.9-0")) - assert.is_true(run.luarocks_bool("unpack luassert-1.7.9-0.rockspec")) - lfs.chdir("luassert-1.7.9-0/luassert-1.7.9/") + assert.is_true(run.luarocks_bool("download --rockspec luassert 1.7.10-0")) + assert.is_true(run.luarocks_bool("unpack luassert-1.7.10-0.rockspec")) + lfs.chdir("luassert-1.7.10-0/luassert-1.7.10/") assert.is_true(run.luarocks_bool("make")) - local output = run.luarocks("test --test-type=busted luassert-1.7.9-0.rockspec") + local output = run.luarocks("test --test-type=busted luassert-1.7.10-0.rockspec") -- Assert that busted ran, whether successfully or not assert.match("%d+ success.* / %d+ failure.* / %d+ error.* / %d+ pending", output) end) -- cgit v1.2.3-55-g6feb