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.
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))))