From 776533adb7a1aa5936e15feff2b83cfc7d0fc350 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 4 Jan 2018 00:40:41 -0500 Subject: [PATCH] feature/evil: fix unit tests --- modules/feature/evil/test/autoload-files.el | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/modules/feature/evil/test/autoload-files.el b/modules/feature/evil/test/autoload-files.el index b14185cd1..48fd0905a 100644 --- a/modules/feature/evil/test/autoload-files.el +++ b/modules/feature/evil/test/autoload-files.el @@ -9,16 +9,17 @@ affects your Emacs packages)." (other ,dest)) (with-temp-file it (insert "Hello world")) - (unwind-protect - (progn - (should (file-exists-p it)) - (find-file-literally it) - (should (equal (buffer-string) "Hello world")) - (should (equal (buffer-file-name) it)) - (let ((inhibit-message (not doom-debug-mode))) - ,@body)) - (ignore-errors (delete-file it)) - ,(if dest `(ignore-errors (delete-file other)))))) + (with-minor-mode!! projectile-mode + (unwind-protect + (progn + (should (file-exists-p it)) + (find-file-literally it) + (should (equal (buffer-string) "Hello world")) + (should (equal (buffer-file-name) it)) + (let ((inhibit-message (not doom-debug-mode))) + ,@body)) + (ignore-errors (delete-file it)) + ,(if dest `(ignore-errors (delete-file other))))))) ;; (def-test! move-this-file