aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-07-01 18:16:59 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-07-01 22:54:08 -0300
commita0e2ba8649305a0309edebd3cc74da23a39785d7 (patch)
tree04b671c2434826b3db90a61bf1fab89f41884426 /spec
parent0728077cb0254bf2cb8cfc920a20f184a1a73fde (diff)
downloadluarocks-a0e2ba8649305a0309edebd3cc74da23a39785d7.tar.gz
luarocks-a0e2ba8649305a0309edebd3cc74da23a39785d7.tar.bz2
luarocks-a0e2ba8649305a0309edebd3cc74da23a39785d7.zip
Tests: remove outdated test
Remove regression test for #304 because LuaRocks no longer conflates foo and foo.init as the same module.
Diffstat (limited to 'spec')
-rw-r--r--spec/install_spec.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index f18b7c89..8a3ede3a 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -162,26 +162,6 @@ describe("luarocks install #integration", function()
162 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_3_1-lfs."..test_env.lib_extension)) 162 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_3_1-lfs."..test_env.lib_extension))
163 end) 163 end)
164 164
165 it('handle versioned modules and commands from different files when upgrading #302', function()
166 io.open(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension, "w"):close()
167 assert.is_true(run.luarocks_bool("install luacheck 0.7.3 --deps-mode=none"))
168 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck.lua"))
169 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension))
170 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension .. "~"))
171
172 assert.is_true(run.luarocks_bool("install luacheck 0.8.0 --deps-mode=none"))
173 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck/init.lua"))
174 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension))
175 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck_0_7_3_1-luacheck.lua"))
176 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck_0_7_3_1-luacheck"..test_env.wrapper_extension))
177
178 assert.is_true(run.luarocks_bool("install luacheck 0.7.3 --keep --deps-mode=none"))
179 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck/init.lua"))
180 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension))
181 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck_0_7_3_1-luacheck.lua"))
182 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck_0_7_3_1-luacheck"..test_env.wrapper_extension))
183 end)
184
185 it('handle non-Lua files in build.install.lua when upgrading sailorproject/sailor#138', function() 165 it('handle non-Lua files in build.install.lua when upgrading sailorproject/sailor#138', function()
186 assert.is_true(run.luarocks_bool("install sailor 0.5-3 --deps-mode=none")) 166 assert.is_true(run.luarocks_bool("install sailor 0.5-3 --deps-mode=none"))
187 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess")) 167 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess"))