1
0
Fork 0

Fix tests for ‘oni-elisp’

This commit is contained in:
Tom Willemse 2019-08-25 14:05:05 -07:00
parent 8b92d54baf
commit b3123f8d11
2 changed files with 5 additions and 3 deletions

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 20190825132536 ;; Version: 20190825135738
;; Package-Requires: (oni-company oni-flycheck oni-paredit oni-fci oni-yasnippet rainbow-delimiters nameless erefactor) ;; Package-Requires: (oni-company oni-flycheck oni-paredit oni-fci oni-yasnippet rainbow-delimiters nameless erefactor)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -43,6 +43,7 @@
(expand-file-name "snippets" oni-elisp-root) (expand-file-name "snippets" oni-elisp-root)
"The directory where oni-elisp stores its snippets.") "The directory where oni-elisp stores its snippets.")
;;;###autoload
(defun oni-elisp-snippets-initialize () (defun oni-elisp-snippets-initialize ()
"Initialize the snippets for oni-elisp." "Initialize the snippets for oni-elisp."
(when (boundp 'yas-snippet-dirs) (when (boundp 'yas-snippet-dirs)

View file

@ -26,8 +26,9 @@
(ert-deftest oni-elisp-test-autoloads () (ert-deftest oni-elisp-test-autoloads ()
"Test that oni-elisp gets loaded automatically." "Test that oni-elisp gets loaded automatically."
(should (not (featurep 'oni-elisp))) ;; Since emacs-lisp-mode is pre-loaded into Emacs, I can only check if its
(require 'elisp-mode) ;; also been properly loaded. There is never a state where emacs-lisp-mode
;; is not loaded in Emacs.
(should (featurep 'oni-elisp))) (should (featurep 'oni-elisp)))
(provide 'oni-elisp-test) (provide 'oni-elisp-test)