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.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index df70ed23..e6b1ad03 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -13,8 +13,6 @@ local extra_rocks = {
13 "/luassert-1.7.0-1.src.rock", 13 "/luassert-1.7.0-1.src.rock",
14 "/luasocket-${LUASOCKET}.src.rock", 14 "/luasocket-${LUASOCKET}.src.rock",
15 "/lxsh-${LXSH}.src.rock", 15 "/lxsh-${LXSH}.src.rock",
16 "/say-1.2-1.src.rock",
17 "/say-1.0-1.src.rock",
18 "/luafilesystem-${LUAFILESYSTEM}.src.rock", 16 "/luafilesystem-${LUAFILESYSTEM}.src.rock",
19 "/luafilesystem-${LUAFILESYSTEM_OLD}.src.rock", 17 "/luafilesystem-${LUAFILESYSTEM_OLD}.src.rock",
20 "spec/fixtures/a_repo/has_build_dep-1.0-1.all.rock", 18 "spec/fixtures/a_repo/has_build_dep-1.0-1.all.rock",
@@ -155,30 +153,6 @@ describe("luarocks install #integration", function()
155 end) 153 end)
156 end) 154 end)
157 155
158 describe("New install functionality based on pull request 552", function()
159 it("break dependencies warning", function()
160 assert.is_true(run.luarocks_bool("install say 1.2"))
161 assert.is_true(run.luarocks_bool("install luassert"))
162 assert.is_true(run.luarocks_bool("install say 1.0"))
163 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1"))
164 end)
165 it("break dependencies force", function()
166 assert.is_true(run.luarocks_bool("install say 1.2"))
167 assert.is_true(run.luarocks_bool("install luassert"))
168 local output = run.luarocks("install --force say 1.0")
169 assert.is.truthy(output:find("Checking stability of dependencies"))
170 assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1"))
171 end)
172 it("break dependencies force fast", function()
173 assert.is_true(run.luarocks_bool("install say 1.2"))
174 assert.is_true(run.luarocks_bool("install luassert"))
175 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1"))
176 local output = run.luarocks("install --force-fast say 1.0")
177 assert.is.falsy(output:find("Checking stability of dependencies"))
178 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.0-1"))
179 end)
180 end)
181
182 describe("#build_dependencies", function() 156 describe("#build_dependencies", function()
183 it("install does not install a build dependency", function() 157 it("install does not install a build dependency", function()
184 assert(run.luarocks_bool("install has_build_dep")) 158 assert(run.luarocks_bool("install has_build_dep"))