From 13b3a18a75ba680ca6cc30ac8e0669b1bd114495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Gamb=C3=B6ck?= Date: Sun, 2 Jul 2017 16:06:54 +0200 Subject: [PATCH] Extend prefix for local file Since we want some folders in the testing area, we need to be a bit more explicit about the file completion. --- spec/awful/completion_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/awful/completion_spec.lua b/spec/awful/completion_spec.lua index 3fdc8471b..1b963d396 100644 --- a/spec/awful/completion_spec.lua +++ b/spec/awful/completion_spec.lua @@ -137,12 +137,12 @@ describe("awful.completion.shell", function() if has_bash then it("completes local file (bash)", function() - assert.same(shell('ls ', 4, 1, 'bash'), {'ls localcommand', 16, {'localcommand'}}) + assert.same(shell('ls l', 5, 1, 'bash'), {'ls localcommand', 16, {'localcommand'}}) end) end if has_zsh then it("completes local file (zsh)", function() - assert.same(shell('ls ', 4, 1, 'zsh'), {'ls localcommand', 16, {'localcommand'}}) + assert.same(shell('ls l', 5, 1, 'zsh'), {'ls localcommand', 16, {'localcommand'}}) end) end end)