]> git.eshelyaron.com Git - emacs.git/commitdiff
newsticker: Fixed bug#9763, again
authorUlf Jasper <ulf.jasper@web.de>
Sat, 29 Oct 2011 15:29:16 +0000 (17:29 +0200)
committerUlf Jasper <ulf.jasper@web.de>
Sat, 29 Oct 2011 15:29:16 +0000 (17:29 +0200)
2011-10-29  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el
(newsticker--group-manage-orphan-feeds): Use fset instead of flet.

test/ChangeLog
test/automated/newsticker-tests.el

index 354acf7eeacc50d4b312da98ec25826fe158595b..dcdef6399e4d55778b1e717e6f9e1c67c3620eb5 100644 (file)
@@ -1,5 +1,8 @@
 2011-10-29  Ulf Jasper  <ulf.jasper@web.de>
 
+       * automated/newsticker-tests.el
+       (newsticker--group-manage-orphan-feeds): Use fset instead of flet.
+
        * trunk/test/automated/newsticker-tests.el
        (newsticker--group-manage-orphan-feeds): Prevent updating
        newsticker treeview. Fixed bug#9763.
index 8b94cf862d1a5cb2b3edbb8fe0d5c4a64a4e0d3f..ba7fe20786bf3da433df2c211bb1b71553606dd8 100644 (file)
@@ -138,11 +138,14 @@ Apply to INPUT and compare with EXPECTED."
 Signals an error if something goes wrong."
   (let ((newsticker-groups '("Feeds"))
         (newsticker-url-list-defaults nil)
-        (newsticker-url-list '(("feed1") ("feed2") ("feed3"))))
+        (newsticker-url-list '(("feed1") ("feed2") ("feed3")))
+        t-nttvtu)
     ;; prevent updating the treeview as it does not exist during fully
     ;; automated tests
-    (flet ((newsticker--treeview-tree-update nil nil))
-      (newsticker--group-manage-orphan-feeds))
+    (fset 't-nttvtu (symbol-function 'newsticker--treeview-tree-update))
+    (fset 'newsticker--treeview-tree-update (lambda() nil))
+    (newsticker--group-manage-orphan-feeds)
+    (fset 'newsticker--treeview-tree-update (symbol-function 't-nttvtu))
     (should (equal '("Feeds" "feed3" "feed2" "feed1")
                    newsticker-groups))))