Commit 73c3f81d authored by Ulf Jasper's avatar Ulf Jasper

newsticker: Fixed bug#9763, again

2011-10-29  Ulf Jasper  <ulf.jasper@web.de>

	* automated/newsticker-tests.el
	(newsticker--group-manage-orphan-feeds): Use fset instead of flet.
parent 6d6a626c
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.
......
......@@ -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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment