aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRainer Borene <rainerborene@gmail.com>2014-10-22 20:25:40 -0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-04 12:57:32 -0300
commitb33c92439bb329e530ece0b125b16482f7ed1ab1 (patch)
tree288ca9129dfca53b0435bf328d8104a0b85b8c3b /test
parent481c449c72687678f32c524f7ab63ada9968cc29 (diff)
downloadrneovim-b33c92439bb329e530ece0b125b16482f7ed1ab1.tar.gz
rneovim-b33c92439bb329e530ece0b125b16482f7ed1ab1.tar.bz2
rneovim-b33c92439bb329e530ece0b125b16482f7ed1ab1.zip
legacy tests: migrate test18
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/018_unset_smart_indenting_spec.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/functional/legacy/018_unset_smart_indenting_spec.lua b/test/functional/legacy/018_unset_smart_indenting_spec.lua
new file mode 100644
index 0000000000..6975cb7f26
--- /dev/null
+++ b/test/functional/legacy/018_unset_smart_indenting_spec.lua
@@ -0,0 +1,28 @@
+-- Tests for not doing smart indenting when it isn't set.
+
+local helpers = require('test.functional.helpers')
+local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
+local execute, expect = helpers.execute, helpers.expect
+
+describe('unset smart indenting', function()
+ setup(clear)
+
+ it('is working', function()
+ insert([[
+ start text
+ some test text
+ test text
+ test text
+ test text]])
+
+ execute('set nocin nosi ai')
+ execute('/some')
+ feed('2cc#test<Esc>')
+
+ expect([[
+ start text
+ #test
+ test text
+ test text]])
+ end)
+end)