spec: fix "require" statements for busted 2.0.rc6
Busted now only provides the magic modules `assert`, `spy` etc for the busted context. The helper module `spec/wibox/test_utils.lua` therefore needs to explicitly require them. Ref: https://github.com/awesomeWM/awesome/pull/139
This commit is contained in:
parent
9c80d7989d
commit
c26a96177d
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
local util = require("awful.util")
|
local util = require("awful.util")
|
||||||
local say = require("say")
|
local say = require("say")
|
||||||
local assert_util = require("luassert.util")
|
|
||||||
|
|
||||||
describe("awful.util", function()
|
describe("awful.util", function()
|
||||||
it("table.keys_filter", function()
|
it("table.keys_filter", function()
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
local color = require("gears.color")
|
local color = require("gears.color")
|
||||||
local cairo = require("lgi").cairo
|
local cairo = require("lgi").cairo
|
||||||
local say = require("say")
|
local say = require("say")
|
||||||
local assert_util = require("luassert.util")
|
|
||||||
|
|
||||||
describe("gears.color", function()
|
describe("gears.color", function()
|
||||||
describe("parse_color", function()
|
describe("parse_color", function()
|
||||||
|
|
|
@ -7,7 +7,9 @@ local object = require("gears.object")
|
||||||
local wbase = require("wibox.widget.base")
|
local wbase = require("wibox.widget.base")
|
||||||
local lbase = require("wibox.layout.base")
|
local lbase = require("wibox.layout.base")
|
||||||
local say = require("say")
|
local say = require("say")
|
||||||
local assert_util = require("luassert.util")
|
local assert = require("luassert")
|
||||||
|
local spy = require("luassert.spy")
|
||||||
|
local stub = require("luassert.stub")
|
||||||
|
|
||||||
local real_draw_widget = lbase.draw_widget
|
local real_draw_widget = lbase.draw_widget
|
||||||
local widgets_drawn = nil
|
local widgets_drawn = nil
|
||||||
|
|
Loading…
Reference in New Issue