branch: elpa/buttercup
commit d5c9a1987576e34114da828b8aec7f86db2a1590
Author: Damien Cassou <[email protected]>
Commit: Damien Cassou <[email protected]>
Make --with-cleanup public so spies can be used without specs
---
buttercup.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index 62f0d98..54fa756 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -563,7 +563,7 @@ KEYWORD can have one of the following values:
(defvar buttercup--cleanup-functions nil)
-(defmacro buttercup--with-cleanup (&rest body)
+(defmacro buttercup-with-cleanup (&rest body)
`(let ((buttercup--cleanup-functions nil))
(unwind-protect (progn ,@body)
(dolist (fun buttercup--cleanup-functions)
@@ -764,7 +764,7 @@ Do not change the global value.")
(defun buttercup--run-spec (spec)
(funcall buttercup-reporter 'spec-started spec)
- (buttercup--with-cleanup
+ (buttercup-with-cleanup
(dolist (f buttercup--before-each)
(buttercup--update-with-funcall spec f))
(buttercup--update-with-funcall spec (buttercup-spec-function spec))