diff options
Diffstat (limited to 'spec/remove_spec.lua')
| -rw-r--r-- | spec/remove_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua index c0e9beb0..9bf038b0 100644 --- a/spec/remove_spec.lua +++ b/spec/remove_spec.lua | |||
| @@ -6,7 +6,7 @@ local testing_paths = test_env.testing_paths | |||
| 6 | test_env.unload_luarocks() | 6 | test_env.unload_luarocks() |
| 7 | 7 | ||
| 8 | local extra_rocks = { | 8 | local extra_rocks = { |
| 9 | "/abelhas-1.0-1.rockspec", | 9 | "/abelhas-1.1-1.rockspec", |
| 10 | "/lualogging-1.3.0-1.src.rock", | 10 | "/lualogging-1.3.0-1.src.rock", |
| 11 | "/luasocket-3.0rc1-2.src.rock", | 11 | "/luasocket-3.0rc1-2.src.rock", |
| 12 | "/luasocket-3.0rc1-2.rockspec" | 12 | "/luasocket-3.0rc1-2.rockspec" |
| @@ -36,16 +36,16 @@ describe("LuaRocks remove tests #blackbox #b_remove", function() | |||
| 36 | end) | 36 | end) |
| 37 | 37 | ||
| 38 | it("LuaRocks remove built abelhas", function() | 38 | it("LuaRocks remove built abelhas", function() |
| 39 | assert.is_true(run.luarocks_bool("build abelhas 1.0")) | 39 | assert.is_true(run.luarocks_bool("build abelhas 1.1")) |
| 40 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) | 40 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) |
| 41 | assert.is_true(run.luarocks_bool("remove abelhas 1.0")) | 41 | assert.is_true(run.luarocks_bool("remove abelhas 1.1")) |
| 42 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) | 42 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) |
| 43 | end) | 43 | end) |
| 44 | 44 | ||
| 45 | it("LuaRocks remove built abelhas with uppercase name", function() | 45 | it("LuaRocks remove built abelhas with uppercase name", function() |
| 46 | assert.is_true(run.luarocks_bool("build abelhas 1.0")) | 46 | assert.is_true(run.luarocks_bool("build abelhas 1.1")) |
| 47 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) | 47 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) |
| 48 | assert.is_true(run.luarocks_bool("remove Abelhas 1.0")) | 48 | assert.is_true(run.luarocks_bool("remove Abelhas 1.1")) |
| 49 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) | 49 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) |
| 50 | end) | 50 | end) |
| 51 | end) | 51 | end) |
