Fix error about ert
This commit is contained in:
parent
85a3512b05
commit
aacc23547f
1 changed files with 9 additions and 8 deletions
|
@ -97,14 +97,15 @@ This is currently the data directory under the
|
||||||
`user-emacs-directory'."
|
`user-emacs-directory'."
|
||||||
(concat user-emacs-directory "data/" file-name))
|
(concat user-emacs-directory "data/" file-name))
|
||||||
|
|
||||||
(ert-deftest oni:data-location ()
|
(with-eval-after-load 'ert
|
||||||
"Test that `oni:data-location' returns the correct locations."
|
(ert-deftest oni:data-location ()
|
||||||
(should (string= "~/.emacs.d/data/backup-files/"
|
"Test that `oni:data-location' returns the correct locations."
|
||||||
(oni:data-location "backup-files/")))
|
(should (string= "~/.emacs.d/data/backup-files/"
|
||||||
(should (string= "~/.emacs.d/data/auto-save-files/"
|
(oni:data-location "backup-files/")))
|
||||||
(oni:data-location "auto-save-files/")))
|
(should (string= "~/.emacs.d/data/auto-save-files/"
|
||||||
(should (string= "~/.emacs.d/data/auto-save-list/.saves-"
|
(oni:data-location "auto-save-files/")))
|
||||||
(oni:data-location "auto-save-list/.saves-"))))
|
(should (string= "~/.emacs.d/data/auto-save-list/.saves-"
|
||||||
|
(oni:data-location "auto-save-list/.saves-")))))
|
||||||
|
|
||||||
;;;; Backups:
|
;;;; Backups:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue