aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/options_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-17 01:38:59 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-04-27 16:31:26 +0200
commit698c4f662d3a30fab1e48dbe7586617a9031a6ea (patch)
tree733c226b0448d219e4097f50625812a0a809bec1 /test/functional/ui/options_spec.lua
parent17291642bd9a58c39fb4d61f6b6170829a47c73e (diff)
downloadrneovim-698c4f662d3a30fab1e48dbe7586617a9031a6ea.tar.gz
rneovim-698c4f662d3a30fab1e48dbe7586617a9031a6ea.tar.bz2
rneovim-698c4f662d3a30fab1e48dbe7586617a9031a6ea.zip
test: clear(): remove `opts.headless` parameter
Callers can instead specify `args_rm={'--headless'}`. TODO: should `nvim_argv` have "--headless" by default? Need to inspect some uses of spawn(nvim_argv) ...
Diffstat (limited to 'test/functional/ui/options_spec.lua')
-rw-r--r--test/functional/ui/options_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua
index ed630259be..7ce21f5d76 100644
--- a/test/functional/ui/options_spec.lua
+++ b/test/functional/ui/options_spec.lua
@@ -115,7 +115,8 @@ describe('ui receives option updates', function()
end)
local function startup_test(headless)
- local expected = reset(nil,{headless=headless,args={'--cmd', 'set guifont=Comic\\ Sans\\ 12'}})
+ local expected = reset(nil, {args_rm=(headless and {} or {'--headless'}),
+ args={'--cmd', 'set guifont=Comic\\ Sans\\ 12'}})
expected.guifont = "Comic Sans 12"
screen:expect(function()
eq(expected, screen.options)