diff options
-rw-r--r-- | spec/test_spec.lua | 14 |
1 files 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 = { | |||
12 | "/luasystem-0.2.1-0.src.rock", | 12 | "/luasystem-0.2.1-0.src.rock", |
13 | "/dkjson-2.5-2.src.rock", | 13 | "/dkjson-2.5-2.src.rock", |
14 | "/say-1.3-1.rockspec", | 14 | "/say-1.3-1.rockspec", |
15 | "/luassert-1.7.9-0.rockspec", | 15 | "/luassert-1.7.10-0.rockspec", |
16 | "/lua-term-0.7-1.rockspec", | 16 | "/lua-term-0.7-1.rockspec", |
17 | "/penlight-1.5.4-1.rockspec", | 17 | "/penlight-1.5.4-1.rockspec", |
18 | "/mediator_lua-1.1.2-0.rockspec", | 18 | "/mediator_lua-1.1.2-0.rockspec", |
@@ -39,16 +39,16 @@ describe("luarocks test #blackbox #b_test", function() | |||
39 | finally(function() | 39 | finally(function() |
40 | -- delete downloaded and unpacked files | 40 | -- delete downloaded and unpacked files |
41 | lfs.chdir(testing_paths.testrun_dir) | 41 | lfs.chdir(testing_paths.testrun_dir) |
42 | test_env.remove_dir("luassert-1.7.9-0") | 42 | test_env.remove_dir("luassert-1.7.10-0") |
43 | os.remove("luassert-1.7.9-0.rockspec") | 43 | os.remove("luassert-1.7.10-0.rockspec") |
44 | end) | 44 | end) |
45 | 45 | ||
46 | -- make luassert | 46 | -- make luassert |
47 | assert.is_true(run.luarocks_bool("download --rockspec luassert 1.7.9-0")) | 47 | assert.is_true(run.luarocks_bool("download --rockspec luassert 1.7.10-0")) |
48 | assert.is_true(run.luarocks_bool("unpack luassert-1.7.9-0.rockspec")) | 48 | assert.is_true(run.luarocks_bool("unpack luassert-1.7.10-0.rockspec")) |
49 | lfs.chdir("luassert-1.7.9-0/luassert-1.7.9/") | 49 | lfs.chdir("luassert-1.7.10-0/luassert-1.7.10/") |
50 | assert.is_true(run.luarocks_bool("make")) | 50 | assert.is_true(run.luarocks_bool("make")) |
51 | local output = run.luarocks("test --test-type=busted luassert-1.7.9-0.rockspec") | 51 | local output = run.luarocks("test --test-type=busted luassert-1.7.10-0.rockspec") |
52 | -- Assert that busted ran, whether successfully or not | 52 | -- Assert that busted ran, whether successfully or not |
53 | assert.match("%d+ success.* / %d+ failure.* / %d+ error.* / %d+ pending", output) | 53 | assert.match("%d+ success.* / %d+ failure.* / %d+ error.* / %d+ pending", output) |
54 | end) | 54 | end) |