aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/023_edit_arguments_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-09 22:51:59 +0200
committerGitHub <noreply@github.com>2017-04-09 22:51:59 +0200
commitd7fb7de70aee3dff48abc61986818dee86afed07 (patch)
treea9263b8deb57161f2b5315117371af026759c79b /test/functional/legacy/023_edit_arguments_spec.lua
parentdbdd69e418a3baa4750abc25fae7516a36776e75 (diff)
parentdbe67868b53774443521129ef30d74346592e3bb (diff)
downloadrneovim-d7fb7de70aee3dff48abc61986818dee86afed07.tar.gz
rneovim-d7fb7de70aee3dff48abc61986818dee86afed07.tar.bz2
rneovim-d7fb7de70aee3dff48abc61986818dee86afed07.zip
Merge #6481 from ZyX-I/rename-execute
Rename execute() function to feed_command()
Diffstat (limited to 'test/functional/legacy/023_edit_arguments_spec.lua')
-rw-r--r--test/functional/legacy/023_edit_arguments_spec.lua34
1 files changed, 18 insertions, 16 deletions
diff --git a/test/functional/legacy/023_edit_arguments_spec.lua b/test/functional/legacy/023_edit_arguments_spec.lua
index 95ab983d24..e705397a2b 100644
--- a/test/functional/legacy/023_edit_arguments_spec.lua
+++ b/test/functional/legacy/023_edit_arguments_spec.lua
@@ -2,7 +2,8 @@
local helpers = require('test.functional.helpers')(after_each)
local clear, insert = helpers.clear, helpers.insert
-local execute, expect = helpers.execute, helpers.expect
+local command, expect = helpers.command, helpers.expect
+local wait = helpers.wait
describe(':edit', function()
setup(clear)
@@ -12,31 +13,32 @@ describe(':edit', function()
The result should be in Xfile1: "fooPIPEbar", in Xfile2: "fooSLASHbar"
foo|bar
foo/bar]])
+ wait()
-- Prepare some test files
- execute('$-1w! Xfile1')
- execute('$w! Xfile2')
- execute('w! Xfile0')
+ command('$-1w! Xfile1')
+ command('$w! Xfile2')
+ command('w! Xfile0')
-- Open Xfile using '+' range
- execute('edit +1 Xfile1')
- execute('s/|/PIPE/')
- execute('yank A')
- execute('w! Xfile1')
+ command('edit +1 Xfile1')
+ command('s/|/PIPE/')
+ command('yank A')
+ command('w! Xfile1')
-- Open Xfile2 using '|' range
- execute('edit Xfile2|1')
- execute("s/\\//SLASH/")
- execute('yank A')
- execute('w! Xfile2')
+ command('edit Xfile2|1')
+ command("s/\\//SLASH/")
+ command('yank A')
+ command('w! Xfile2')
-- Clean first buffer and put @a
- execute('bf')
- execute('%d')
- execute('0put a')
+ command('bf')
+ command('%d')
+ command('0put a')
-- Remove empty line
- execute('$d')
+ command('$d')
-- The buffer should now contain
expect([[