test: fix command_count_spec

The test hit wait_return if x or .x.swp exists in the project root directory.
This commit is contained in:
Björn Linse
2016-06-23 11:15:08 +02:00
parent c475e3f8d1
commit e8a8342132
6 changed files with 24 additions and 25 deletions

View File

@@ -22,7 +22,7 @@ describe('&encoding', function()
end)
it('can be changed before startup', function()
clear('set enc=latin1')
clear('--cmd', 'set enc=latin1')
execute('set encoding=utf-8')
-- error message expected
feed('<cr>')
@@ -32,7 +32,7 @@ describe('&encoding', function()
it('is not changed by `set all&`', function()
-- we need to set &encoding to something non-default. Use 'latin1'
clear('set enc=latin1')
clear('--cmd', 'set enc=latin1')
execute('set all&')
eq('latin1', eval('&encoding'))
eq(4, eval('strwidth("Bär")'))