From aacc23547f595da7c19202c405259e5e78856d34 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 25 Jul 2016 22:12:44 +0200 Subject: [PATCH] Fix error about ert --- emacs/.emacs.d/init.el | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index ec036da..42854f0 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -97,14 +97,15 @@ This is currently the data directory under the `user-emacs-directory'." (concat user-emacs-directory "data/" file-name)) -(ert-deftest oni:data-location () - "Test that `oni:data-location' returns the correct locations." - (should (string= "~/.emacs.d/data/backup-files/" - (oni:data-location "backup-files/"))) - (should (string= "~/.emacs.d/data/auto-save-files/" - (oni:data-location "auto-save-files/"))) - (should (string= "~/.emacs.d/data/auto-save-list/.saves-" - (oni:data-location "auto-save-list/.saves-")))) +(with-eval-after-load 'ert + (ert-deftest oni:data-location () + "Test that `oni:data-location' returns the correct locations." + (should (string= "~/.emacs.d/data/backup-files/" + (oni:data-location "backup-files/"))) + (should (string= "~/.emacs.d/data/auto-save-files/" + (oni:data-location "auto-save-files/"))) + (should (string= "~/.emacs.d/data/auto-save-list/.saves-" + (oni:data-location "auto-save-list/.saves-"))))) ;;;; Backups: