]> git.eshelyaron.com Git - emacs.git/commitdiff
Update a ffap test
authorGlenn Morris <rgm@gnu.org>
Sun, 14 Jul 2019 20:28:54 +0000 (13:28 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 14 Jul 2019 20:28:54 +0000 (13:28 -0700)
* test/lisp/ffap-tests.el (ffap-other-window--bug-25352):
Update for incompatible ffap-other-window change.

test/lisp/ffap-tests.el

index 5b2f43cb2d37cba2490e329c139f036ac1b76734..3aa2812ec5a590b46d7eda117690e6ce17d1158c 100644 (file)
@@ -71,11 +71,9 @@ Host = example.com\n")
   "Test for Bug#25352.  Checks that the window configuration is
 left alone when opening a URL in an external browser."
   (cl-letf* ((old (current-window-configuration))
-             ((symbol-function 'ffap-prompter)
-              (lambda () "https://www.gnu.org"))
              (urls nil)
              (ffap-url-fetcher (lambda (url) (push url urls) nil)))
-    (should-not (ffap-other-window))
+    (should-not (ffap-other-window "https://www.gnu.org"))
     (should (equal (current-window-configuration) old))
     (should (equal urls '("https://www.gnu.org")))))