functests: Refactor legacy/018_unset_smart_indenting_spec

This commit is contained in:
ZyX
2017-04-08 22:02:44 +03:00
parent e31aab8b61
commit 7766b24f3c

View File

@@ -1,11 +1,15 @@
-- Tests for not doing smart indenting when it isn't set.
local helpers = require('test.functional.helpers')(after_each)
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
local execute, expect = helpers.execute, helpers.expect
local feed = helpers.feed
local clear = helpers.clear
local insert = helpers.insert
local expect = helpers.expect
local feed_command = helpers.feed_command
describe('unset smart indenting', function()
setup(clear)
before_each(clear)
it('is working', function()
insert([[
@@ -15,8 +19,8 @@ describe('unset smart indenting', function()
test text
test text]])
execute('set nocin nosi ai')
execute('/some')
feed_command('set nocin nosi ai')
feed_command('/some')
feed('2cc#test<Esc>')
expect([[