aboutsummaryrefslogtreecommitdiff
path: root/test/functional/options/shortmess_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-03-17 00:21:48 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-03-17 00:21:48 -0400
commit5a9d3be54cce2f21d5f76a4bc5ebef08927b1988 (patch)
tree054bd7a88bba554f557440ee23fe2e79b276950b /test/functional/options/shortmess_spec.lua
parent77a7ca458bc3e6e140149d1f2bf97593e2d502cd (diff)
downloadrneovim-5a9d3be54cce2f21d5f76a4bc5ebef08927b1988.tar.gz
rneovim-5a9d3be54cce2f21d5f76a4bc5ebef08927b1988.tar.bz2
rneovim-5a9d3be54cce2f21d5f76a4bc5ebef08927b1988.zip
test: minor changes
Diffstat (limited to 'test/functional/options/shortmess_spec.lua')
-rw-r--r--test/functional/options/shortmess_spec.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/functional/options/shortmess_spec.lua b/test/functional/options/shortmess_spec.lua
new file mode 100644
index 0000000000..04a64d2943
--- /dev/null
+++ b/test/functional/options/shortmess_spec.lua
@@ -0,0 +1,39 @@
+local helpers = require('test.functional.helpers')
+local Screen = require('test.functional.ui.screen')
+local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute
+
+describe("'shortmess'", function()
+ local screen
+
+ before_each(function()
+ clear()
+ screen = Screen.new(25, 5)
+ screen:attach()
+ end)
+
+ after_each(function()
+ screen:detach()
+ end)
+
+ describe('"F" flag', function()
+ it('hides messages about the files read', function()
+ execute('e test')
+ screen:expect([[
+ ^ |
+ ~ |
+ ~ |
+ ~ |
+ "test" is a directory |
+ ]])
+ execute('set shortmess=F')
+ execute('e test')
+ screen:expect([[
+ ^ |
+ ~ |
+ ~ |
+ ~ |
+ :e test |
+ ]])
+ end)
+ end)
+end)