aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/cpoptions_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/cpoptions_spec.lua')
-rw-r--r--test/functional/legacy/cpoptions_spec.lua15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/functional/legacy/cpoptions_spec.lua b/test/functional/legacy/cpoptions_spec.lua
index 288146199a..56b0e72c72 100644
--- a/test/functional/legacy/cpoptions_spec.lua
+++ b/test/functional/legacy/cpoptions_spec.lua
@@ -1,8 +1,9 @@
-local helpers = require('test.functional.helpers')(after_each)
+local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
-local clear = helpers.clear
-local command = helpers.command
-local feed = helpers.feed
+
+local clear = n.clear
+local command = n.command
+local feed = n.feed
before_each(clear)
@@ -15,13 +16,13 @@ describe('cpoptions', function()
feed('c2w')
screen:expect([[
^one tw$ three |
- ~ |*4
- -- INSERT -- |
+ {1:~ }|*4
+ {5:-- INSERT --} |
]])
feed('vim<Esc>')
screen:expect([[
vi^m three |
- ~ |*4
+ {1:~ }|*4
|
]])
end)