Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test existence of :DocOpen command, only for help files

  • Loading branch information...
commit d19ce4b7cbbe09a49b6b93d684be32478e594470 1 parent e7672ad
@nelstrom nelstrom authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 t/docopen-test.vim
View
14 t/docopen-test.vim
@@ -47,3 +47,17 @@ describe 'GetHelptag'
end
end
+
+describe ':DocOpen'
+
+ it 'command is defined for help files'
+ setlocal filetype=help
+ Expect exists(':DocOpen') ==# 2
+ end
+
+ it 'command is not defined for non-help files'
+ setlocal filetype=
+ Expect exists(':DocOpen') ==# 0
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.