diff --git a/spec/awful/completion_spec.lua b/spec/awful/completion_spec.lua index 434582e6..4c4b246e 100644 --- a/spec/awful/completion_spec.lua +++ b/spec/awful/completion_spec.lua @@ -182,6 +182,17 @@ describe("awful.completion.shell", function() assert.same(shell('true', 5, 1, nil), {'true', 5, {'true'}}) end) + if has_bash then + it("does not complete local directory not starting with ./ (bash)", function() + assert.same(shell('just_a', 7, 1, 'bash'), {'just_a', 7}) + end) + end + if has_zsh then + it("does not complete local directory not starting with ./ (zsh)", function() + assert.same(shell('just_a', 7, 1, 'zsh'), {'just_a', 7}) + end) + end + if has_bash then it("completes local directories starting with ./ (bash)", function() assert.same(shell('./just', 7, 1, 'bash'), {'./just_a_directory/', 20, {'./just_a_directory/'}})