From 6a72d843a7bb3dc9f5e133f9a9d614af46f92daa Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Wed, 26 Oct 2016 16:26:53 +0300 Subject: Add two tests for uppercase rock name arguments --- spec/remove_spec.lua | 9 ++++++++- spec/show_spec.lua | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'spec') 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() assert.is_false(run.luarocks_bool("remove luacov --deps-mode")) end) - it("LuaRocks remove builded abelhas", function() + it("LuaRocks remove built abelhas", function() assert.is_true(run.luarocks_bool("build abelhas 1.0")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) assert.is_true(run.luarocks_bool("remove abelhas 1.0")) assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) end) + + it("LuaRocks remove built abelhas with uppercase name", function() + assert.is_true(run.luarocks_bool("build abelhas 1.0")) + assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) + assert.is_true(run.luarocks_bool("remove Abelhas 1.0")) + assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/abelhas")) + end) end) describe("LuaRocks remove more complex tests", function() diff --git a/spec/show_spec.lua b/spec/show_spec.lua index b2cdc07e..d07fdc31 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua @@ -22,6 +22,11 @@ describe("LuaRocks show tests #blackbox #b_show", function() local output = run.luarocks("show luacov") assert.is.truthy(output:match("LuaCov")) end) + + it("LuaRocks show luacov with uppercase name", function() + local output = run.luarocks("show LuaCov") + assert.is.truthy(output:match("LuaCov")) + end) it("LuaRocks show modules of luacov", function() local output = run.luarocks("show --modules luacov") -- cgit v1.2.3-55-g6feb