Start investigating #51
This commit is contained in:
parent
1c3a5f53ff
commit
1011229c85
|
@ -12,6 +12,24 @@
|
|||
(should (equal (expand-file-name "~/plantuml.jar")
|
||||
plantuml-jar-path)))
|
||||
|
||||
(ert-deftest can-unload-plantuml ()
|
||||
(unload-feature 'plantuml-mode t)
|
||||
(should (eq nil (boundp 'plantuml-jar-path)))
|
||||
(load-plantuml-mode)
|
||||
(should (not (eq nil (boundp 'plantuml-jar-path)))))
|
||||
|
||||
(ert-deftest debug-install-issues ()
|
||||
(unload-feature 'plantuml-mode t)
|
||||
|
||||
(condition-case nil
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives
|
||||
'("melpa" . "https://melpa.milkbox.net/packages/"))
|
||||
(package-install "plantuml-mode")
|
||||
(unload-feature 'plantuml-mode t))
|
||||
|
||||
(load-plantuml-mode))
|
||||
|
||||
(provide 'plantuml-mode-test)
|
||||
|
||||
;;; plantuml-mode-test.el ends here
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
(defun read-test-file (path)
|
||||
(f-read (f-join plantuml-test-resources-path path) 'utf-8))
|
||||
|
||||
(require 'plantuml-mode (f-expand "plantuml-mode.el" package-code-path))
|
||||
(defun load-plantuml-mode ()
|
||||
(require 'plantuml-mode (f-expand "plantuml-mode.el" package-code-path)))
|
||||
|
||||
(load-plantuml-mode)
|
||||
|
||||
;;; test-helper.el ends here
|
||||
|
|
Loading…
Reference in New Issue