From 7f6763fb00df7ade3dd59fbd3e6def73cd3c350c Mon Sep 17 00:00:00 2001 From: Kevin Zander Date: Thu, 2 Mar 2017 17:54:10 -0600 Subject: [PATCH] Add awesome.version to globals for tests. Will always show util.deprecate output --- spec/preload.lua | 3 +++ tests/examples/shims/awesome.lua | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spec/preload.lua b/spec/preload.lua index 9e5bd8ef..864e38bd 100644 --- a/spec/preload.lua +++ b/spec/preload.lua @@ -3,6 +3,9 @@ -- is not safe to reload and yet Busted manages to do this. require("lgi") +-- Always show deprecated messages +_G.awesome = {version = "v9999"} + -- "fix" some intentional beautiful breakage done by .travis.yml require("beautiful").init{} diff --git a/tests/examples/shims/awesome.lua b/tests/examples/shims/awesome.lua index 4e53c763..a0e2becc 100644 --- a/tests/examples/shims/awesome.lua +++ b/tests/examples/shims/awesome.lua @@ -45,6 +45,9 @@ awesome.startup = true function awesome.register_xproperty() end +-- Always show deprecated messages +awesome.version = "v9999" + return awesome -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80