aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/install_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index f068af76..a00396fa 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -100,9 +100,11 @@ describe("LuaRocks install tests #blackbox #b_install", function()
100 end) 100 end)
101 101
102 it('LuaRocks install - handle versioned modules and commands from different files when upgrading #302', function() 102 it('LuaRocks install - handle versioned modules and commands from different files when upgrading #302', function()
103 io.open(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension, "w"):close()
103 assert.is_true(run.luarocks_bool("install luacheck 0.7.3 --deps-mode=none")) 104 assert.is_true(run.luarocks_bool("install luacheck 0.7.3 --deps-mode=none"))
104 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck.lua")) 105 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck.lua"))
105 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension)) 106 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension))
107 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension .. "~"))
106 108
107 assert.is_true(run.luarocks_bool("install luacheck 0.8.0 --deps-mode=none")) 109 assert.is_true(run.luarocks_bool("install luacheck 0.8.0 --deps-mode=none"))
108 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck/init.lua")) 110 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck/init.lua"))