From ed2cbf4046b76e7f08a17577d286c08f2439e93f Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Thu, 20 Oct 2016 00:41:21 +0300 Subject: Add a test for wrapped script backup --- spec/install_spec.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec') 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() end) it('LuaRocks install - handle versioned modules and commands from different files when upgrading #302', function() + io.open(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension, "w"):close() assert.is_true(run.luarocks_bool("install luacheck 0.7.3 --deps-mode=none")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck.lua")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension)) + assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/bin/luacheck"..test_env.wrapper_extension .. "~")) assert.is_true(run.luarocks_bool("install luacheck 0.8.0 --deps-mode=none")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/luacheck/init.lua")) -- cgit v1.2.3-55-g6feb