diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-11 03:45:08 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-11 03:45:08 -0500 |
commit | adb73b60256048cf36a53d6ff714ca9e7c6134bd (patch) | |
tree | 312e0cd1b8a9758b43dad3fd1fc0c099321124a0 /test/functional/legacy/options_spec.lua | |
parent | 63d750f310539edc94b3193b9142eb784518a25a (diff) | |
parent | 69e5427be170d98a413edb1e191254f84d8642f6 (diff) | |
download | rneovim-adb73b60256048cf36a53d6ff714ca9e7c6134bd.tar.gz rneovim-adb73b60256048cf36a53d6ff714ca9e7c6134bd.tar.bz2 rneovim-adb73b60256048cf36a53d6ff714ca9e7c6134bd.zip |
Merge pull request #4204 from watiko/vim-7.4.915
vim-patch:7.4.{749,915}
Diffstat (limited to 'test/functional/legacy/options_spec.lua')
-rw-r--r-- | test/functional/legacy/options_spec.lua | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/test/functional/legacy/options_spec.lua b/test/functional/legacy/options_spec.lua index 773acb9663..21e99c4aa1 100644 --- a/test/functional/legacy/options_spec.lua +++ b/test/functional/legacy/options_spec.lua @@ -1,13 +1,27 @@ --- Test if ":options" throws any exception. The options window seems to mess --- other tests, so restart nvim in the teardown hook - local helpers = require('test.functional.helpers') local command, clear = helpers.command, helpers.clear +local source, expect = helpers.source, helpers.expect describe('options', function() setup(clear) - it('is working', function() + it('should not throw any exception', function() command('options') end) end) + +describe('set', function() + setup(clear) + + it("should keep two comma when 'path' is changed", function() + source([[ + set path=foo,,bar + set path-=bar + set path+=bar + $put =&path]]) + + expect([[ + + foo,,bar]]) + end) +end) |