diff options
Diffstat (limited to 'spec')
-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() |