From 8a877bd4294716a82b627ef08e2b7ed23eeefc23 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 25 Jan 2020 20:10:24 -0500 Subject: [PATCH] tests: Mock `drawin` in the permission unit tests. --- spec/awful/permissions_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/awful/permissions_spec.lua b/spec/awful/permissions_spec.lua index fb58f3f9..ce13aabc 100644 --- a/spec/awful/permissions_spec.lua +++ b/spec/awful/permissions_spec.lua @@ -14,6 +14,13 @@ describe("awful.permissions.client_geometry_requests", function() _G.tag = { connect_signal = function() end, } + _G.awesome = { + connect_signal = function() end, + } + _G.drawin = { + set_index_miss_handler = function() end, + set_newindex_miss_handler = function() end + } local permissions = require("awful.permissions")