Files
neovim/test/functional/options/shortmess_spec.lua
KillTheMule 360d0513d1 Satisfy testlint.
For that, make luatest ignore the preload.lua files.
2016-04-28 19:30:17 +02:00

40 lines
968 B
Lua

local helpers = require('test.functional.helpers')
local Screen = require('test.functional.ui.screen')
local clear, execute = helpers.clear, 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)