Permalink
Browse files

Test existence of :DocOpen command, only for help files

  • Loading branch information...
nelstrom committed Feb 25, 2013
1 parent e7672ad commit d19ce4b7cbbe09a49b6b93d684be32478e594470
Showing with 14 additions and 0 deletions.
  1. +14 −0 t/docopen-test.vim
View
@@ -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

0 comments on commit d19ce4b

Please sign in to comment.