branch: elpa/buttercup
commit ed649d722aeb20683705a2378438833efd96e271
Merge: 54696b0 d5c9a19
Author: Jorgen Schäfer <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #76 from DamienCassou/make-buttercup--with-cleanup-public
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 5c6c55a..fb8564d 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -564,7 +564,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)
@@ -765,7 +765,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))