aboutsummaryrefslogtreecommitdiff
path: root/spec/remove_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/remove_spec.lua')
-rw-r--r--spec/remove_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua
index a67db591..ddeb0644 100644
--- a/spec/remove_spec.lua
+++ b/spec/remove_spec.lua
@@ -4,6 +4,7 @@ local run = test_env.run
4local testing_paths = test_env.testing_paths 4local testing_paths = test_env.testing_paths
5local env_variables = test_env.env_variables 5local env_variables = test_env.env_variables
6local V = test_env.V 6local V = test_env.V
7local P = test_env.P
7 8
8test_env.unload_luarocks() 9test_env.unload_luarocks()
9 10
@@ -86,7 +87,7 @@ describe("luarocks remove #integration", function()
86 end) 87 end)
87 88
88 it("restores old versions", function() 89 it("restores old versions", function()
89 local libdir = testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION 90 local libdir = P(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION)
90 91
91 assert.is_true(run.luarocks_bool("install luafilesystem ${LUAFILESYSTEM_OLD_V}")) 92 assert.is_true(run.luarocks_bool("install luafilesystem ${LUAFILESYSTEM_OLD_V}"))
92 assert.is.truthy(lfs.attributes(libdir.."/lfs."..test_env.lib_extension)) 93 assert.is.truthy(lfs.attributes(libdir.."/lfs."..test_env.lib_extension))