diff options
| author | Hisham <hisham@gobolinux.org> | 2016-10-27 14:31:45 -0200 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-10-27 14:31:45 -0200 |
| commit | 5137884ef5ec78d1922a85691eefea48d6391c76 (patch) | |
| tree | 76a4d741ef85cfa4a07a5b2ef096410236a24847 /spec | |
| parent | 518e3b4f49f95a345d5f93600c85ce61b0f9fc41 (diff) | |
| parent | f7ae6213f430798ec86883f9ab9917b156e1758d (diff) | |
| download | luarocks-5137884ef5ec78d1922a85691eefea48d6391c76.tar.gz luarocks-5137884ef5ec78d1922a85691eefea48d6391c76.tar.bz2 luarocks-5137884ef5ec78d1922a85691eefea48d6391c76.zip | |
Merge branch 'master' into luarocks-3
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/remove_spec.lua | 9 | ||||
| -rw-r--r-- | spec/show_spec.lua | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua index 3d321e30..03b3681e 100644 --- a/spec/remove_spec.lua +++ b/spec/remove_spec.lua | |||
| @@ -35,12 +35,19 @@ describe("LuaRocks remove tests #blackbox #b_remove", function() | |||
| 35 | assert.is_false(run.luarocks_bool("remove luacov --deps-mode")) | 35 | assert.is_false(run.luarocks_bool("remove luacov --deps-mode")) |
| 36 | end) | 36 | end) |
| 37 | 37 | ||
| 38 | it("LuaRocks remove builded 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.0")) |
| 40 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) | 40 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) |
| 41 | assert.is_true(run.luarocks_bool("remove abelhas 1.0")) | 41 | assert.is_true(run.luarocks_bool("remove abelhas 1.0")) |
| 42 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) | 42 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) |
| 43 | end) | 43 | end) |
| 44 | |||
| 45 | it("LuaRocks remove built abelhas with uppercase name", function() | ||
| 46 | assert.is_true(run.luarocks_bool("build abelhas 1.0")) | ||
| 47 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) | ||
| 48 | assert.is_true(run.luarocks_bool("remove Abelhas 1.0")) | ||
| 49 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) | ||
| 50 | end) | ||
| 44 | end) | 51 | end) |
| 45 | 52 | ||
| 46 | describe("LuaRocks remove more complex tests", function() | 53 | describe("LuaRocks remove more complex tests", function() |
diff --git a/spec/show_spec.lua b/spec/show_spec.lua index b95ea818..0b046de0 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua | |||
| @@ -22,6 +22,11 @@ describe("LuaRocks show tests #blackbox #b_show", function() | |||
| 22 | local output = run.luarocks("show luacov") | 22 | local output = run.luarocks("show luacov") |
| 23 | assert.is.truthy(output:match("LuaCov")) | 23 | assert.is.truthy(output:match("LuaCov")) |
| 24 | end) | 24 | end) |
| 25 | |||
| 26 | it("LuaRocks show luacov with uppercase name", function() | ||
| 27 | local output = run.luarocks("show LuaCov") | ||
| 28 | assert.is.truthy(output:match("LuaCov")) | ||
| 29 | end) | ||
| 25 | 30 | ||
| 26 | it("LuaRocks show modules of luacov", function() | 31 | it("LuaRocks show modules of luacov", function() |
| 27 | local output = run.luarocks("show --modules luacov") | 32 | local output = run.luarocks("show --modules luacov") |
