aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichal Nazarewicz2016-02-23 14:44:56 +1100
committerLars Ingebrigtsen2016-02-23 14:44:56 +1100
commit6f0498bf290cbe066036f8bfe0d09ad99ddaab03 (patch)
tree391e4f25adbbe7d88e1f968bbef54ddeb1dcda84 /etc
parent96e32bbb736ec6e0a7278ae864098c7c812b05a4 (diff)
downloademacs-6f0498bf290cbe066036f8bfe0d09ad99ddaab03.tar.gz
emacs-6f0498bf290cbe066036f8bfe0d09ad99ddaab03.zip
ert-with-function-mocked: New macro
* lisp/emacs-lisp/ert-x.el (ert-with-function-mocked): New macro which allows evaluating code while particular function is replaced with a mock. The original definition of said function is restored once the macro finishes.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 9e000be4a7a..04c1ee83aba 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -104,6 +104,9 @@ different group ID.
104** Autoload files can be generated without timestamps, 104** Autoload files can be generated without timestamps,
105by setting `autoload-timestamps' to nil. 105by setting `autoload-timestamps' to nil.
106 106
107** `ert-with-function-mocked' of 'ert-x package allows mocking of functions
108in unit tests.
109
107 110
108* Changes in Emacs 25.2 on Non-Free Operating Systems 111* Changes in Emacs 25.2 on Non-Free Operating Systems
109 112