spelling-tests.el: use ert-with-temp-directory
* test/lisp/so-long-tests/spelling-tests.el (so-long-spelling): Use ;ert-with-temp-directory' instead of passing :directory to 'ert-with-temp-file', and restore the prefix/suffix values used originally with 'make-temp-file'.
This commit is contained in:
parent
8df6f00223
commit
53eaec6dc3
1 changed files with 3 additions and 3 deletions
|
@ -50,9 +50,9 @@
|
|||
;; The Emacs test Makefile's use of HOME=/nonexistent triggers an error
|
||||
;; when starting the inferior ispell process, so we set HOME to a valid
|
||||
;; (but empty) temporary directory for this test.
|
||||
(ert-with-temp-file tmpdir
|
||||
:directory t
|
||||
:suffix "so-long.ispell"
|
||||
(ert-with-temp-directory tmpdir
|
||||
:prefix "so-long."
|
||||
:suffix ".ispell"
|
||||
(let* ((process-environment (cons (format "HOME=%s" tmpdir)
|
||||
process-environment))
|
||||
(find-spelling-mistake
|
||||
|
|
Loading…
Add table
Reference in a new issue