]> git.madduck.net Git - etc/vim.git/blobdiff - t/settings.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Test ftdetect (settings)
[etc/vim.git] / t / settings.vader
index fd45da93107ea3885eb13ee5444c3f592cfda4cc..aab7688c212121b64d18a13797845e0cca14a99e 100644 (file)
@@ -25,3 +25,18 @@ Execute (test increment password length):
 
 Execute (test new generates do not match):
   AssertNotEqual password_store#generate(), password_store#generate()
 
 Execute (test new generates do not match):
   AssertNotEqual password_store#generate(), password_store#generate()
+
+Given text (test ftdetect):
+  passwordtesting
+
+Before (mimic settings):
+  let g:password_store_settings = {}
+  let g:password_store_settings.enable_syntax = 'false'
+  let g:password_store_settings.pw_length = '16'
+
+Execute (test ftdetect trigger):
+  set filetype=pass
+  AssertEqual password_store#setting('enable_syntax'), 'false'
+  AssertEqual len( password_store#generate() ), 16
+
+