From 10bad3310db01db1dc2b02ec65cc1983b48adee8 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 23 Aug 2013 00:02:36 +0430 Subject: [PATCH] completion tests --- test/completions.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/completions.vim diff --git a/test/completions.vim b/test/completions.vim new file mode 100644 index 0000000..355a174 --- /dev/null +++ b/test/completions.vim @@ -0,0 +1,19 @@ +let g:jedi#completions_command = 'X' +source plugin/jedi.vim + +describe 'completions' + before + new + set filetype=python + end + + it 'import' + " X is the completion command + normal oimporX + Expect getline('.') == 'import' + normal! a subproX + Expect getline('.') == 'import subprocess' + end +end + +" vim: et:ts=4:sw=4