From c26a96177da1904f65c44f4eddc88fa9e82c6a37 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 18 Feb 2015 12:49:21 +0100 Subject: [PATCH] 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 --- spec/awful/util_spec.lua | 1 - spec/gears/color_spec.lua | 1 - spec/wibox/test_utils.lua | 4 +++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/awful/util_spec.lua b/spec/awful/util_spec.lua index a06f1db74..5e39f1819 100644 --- a/spec/awful/util_spec.lua +++ b/spec/awful/util_spec.lua @@ -5,7 +5,6 @@ local util = require("awful.util") local say = require("say") -local assert_util = require("luassert.util") describe("awful.util", function() it("table.keys_filter", function() diff --git a/spec/gears/color_spec.lua b/spec/gears/color_spec.lua index 7d0499d55..66fcfdce6 100644 --- a/spec/gears/color_spec.lua +++ b/spec/gears/color_spec.lua @@ -6,7 +6,6 @@ local color = require("gears.color") local cairo = require("lgi").cairo local say = require("say") -local assert_util = require("luassert.util") describe("gears.color", function() describe("parse_color", function() diff --git a/spec/wibox/test_utils.lua b/spec/wibox/test_utils.lua index 1716c2e8b..180de905f 100644 --- a/spec/wibox/test_utils.lua +++ b/spec/wibox/test_utils.lua @@ -7,7 +7,9 @@ local object = require("gears.object") local wbase = require("wibox.widget.base") local lbase = require("wibox.layout.base") 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 widgets_drawn = nil