diff options
| author | Michal Nazarewicz | 2016-02-23 14:44:56 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-23 14:44:56 +1100 |
| commit | 6f0498bf290cbe066036f8bfe0d09ad99ddaab03 (patch) | |
| tree | 391e4f25adbbe7d88e1f968bbef54ddeb1dcda84 /etc | |
| parent | 96e32bbb736ec6e0a7278ae864098c7c812b05a4 (diff) | |
| download | emacs-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -104,6 +104,9 @@ different group ID. | |||
| 104 | ** Autoload files can be generated without timestamps, | 104 | ** Autoload files can be generated without timestamps, |
| 105 | by setting `autoload-timestamps' to nil. | 105 | by setting `autoload-timestamps' to nil. |
| 106 | 106 | ||
| 107 | ** `ert-with-function-mocked' of 'ert-x package allows mocking of functions | ||
| 108 | in 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 | ||