From 980c47d775c808d7845c2dce266ee8b4bca472d9 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 22 Jul 2018 16:10:46 -0400 Subject: [PATCH] tests: Mock capi.keygrabger It will now run "static code" when the module is loaded, so need to exist. --- spec/awful/prompt_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/awful/prompt_spec.lua b/spec/awful/prompt_spec.lua index 41ddce83c..5c7d35274 100644 --- a/spec/awful/prompt_spec.lua +++ b/spec/awful/prompt_spec.lua @@ -46,6 +46,10 @@ insulate('main', function () _G.awesome = { connect_signal = function() end } + _G.keygrabber = { + run = function() end, + stop = function() end, + } -- luacheck: globals string function string.wlen(self) return #self