aboutsummaryrefslogtreecommitdiff
path: root/spec/install_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/install_spec.lua')
-rw-r--r--spec/install_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index 9bc94eb6..ea6e1d3f 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -22,11 +22,11 @@ local extra_rocks = {
22 "/wsapi-1.6-1.src.rock", 22 "/wsapi-1.6-1.src.rock",
23 "/luafilesystem-1.6.3-2.src.rock", 23 "/luafilesystem-1.6.3-2.src.rock",
24 "/luafilesystem-1.6.3-1.src.rock", 24 "/luafilesystem-1.6.3-1.src.rock",
25 "/sailor-0.5-3.src.rock",
26 "/sailor-0.5-4.src.rock",
27 "spec/fixtures/a_repo/has_build_dep-1.0-1.all.rock", 25 "spec/fixtures/a_repo/has_build_dep-1.0-1.all.rock",
28 "spec/fixtures/a_repo/a_build_dep-1.0-1.all.rock", 26 "spec/fixtures/a_repo/a_build_dep-1.0-1.all.rock",
29 "spec/fixtures/a_repo/a_rock-1.0-1.src.rock", 27 "spec/fixtures/a_repo/a_rock-1.0-1.src.rock",
28 "spec/fixtures/a_repo/non_lua_file-1.0-1.src.rock",
29 "spec/fixtures/a_repo/non_lua_file-1.0-2.src.rock",
30} 30}
31 31
32describe("luarocks install #integration", function() 32describe("luarocks install #integration", function()
@@ -183,11 +183,11 @@ describe("luarocks install #integration", function()
183 end) 183 end)
184 184
185 it('handle non-Lua files in build.install.lua when upgrading sailorproject/sailor#138', function() 185 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")) 186 assert.is_true(run.luarocks_bool("install non_lua_file 1.0-1 --deps-mode=none"))
187 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess")) 187 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess"))
188 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~")) 188 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~"))
189 189
190 assert.is_true(run.luarocks_bool("install sailor 0.5-4 --deps-mode=none")) 190 assert.is_true(run.luarocks_bool("install non_lua_file 1.0-2 --deps-mode=none"))
191 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess")) 191 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess"))
192 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~")) 192 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~"))
193 end) 193 end)
@@ -281,7 +281,7 @@ describe("luarocks install #integration", function()
281 281
282 describe("#build_dependencies", function() 282 describe("#build_dependencies", function()
283 it("install does not install a build dependency", function() 283 it("install does not install a build dependency", function()
284 assert(run.luarocks_bool("install has_build_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) 284 assert(run.luarocks_bool("install has_build_dep"))
285 assert(run.luarocks_bool("show has_build_dep 1.0")) 285 assert(run.luarocks_bool("show has_build_dep 1.0"))
286 assert.falsy(run.luarocks_bool("show a_build_dep 1.0")) 286 assert.falsy(run.luarocks_bool("show a_build_dep 1.0"))
287 end) 287 end)