]> git.eshelyaron.com Git - emacs.git/commitdiff
spelling-tests.el: use ert-with-temp-directory
authorRobert Pluim <rpluim@gmail.com>
Thu, 13 Jan 2022 14:54:28 +0000 (15:54 +0100)
committerRobert Pluim <rpluim@gmail.com>
Fri, 14 Jan 2022 09:06:21 +0000 (10:06 +0100)
* 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'.

test/lisp/so-long-tests/spelling-tests.el

index 3484957e962db506c2b515659907a1ed43e7e276..ce4b0844c99d5d3c420e861c2f23a3dce8c4f6a7 100644 (file)
@@ -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