Add awesome.version to globals for tests. Will always show util.deprecate output

This commit is contained in:
Kevin Zander 2017-03-02 17:54:10 -06:00
parent edd9415df6
commit 7f6763fb00
2 changed files with 6 additions and 0 deletions

View File

@ -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{}

View File

@ -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