branch: elpa/buttercup commit 373415228ac9ca46311ea9afeaea0cd23949fd54 Author: Ola Nilsson <ola.nils...@gmail.com> Commit: Ola Nilsson <ola.nils...@gmail.com>
Make buttercup-describe return the created suite object Returning the buttercup-suite object from these function makes it possible to write simpler code elsewhere, especially tests. --- buttercup.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buttercup.el b/buttercup.el index ef8cc5d..e28cb01 100644 --- a/buttercup.el +++ b/buttercup.el @@ -845,7 +845,8 @@ is a function containing the body instructions passed to (format "Found duplicate spec names in suite: %S" (delete-dups dups))))) (setq buttercup-suites (append buttercup-suites - (list buttercup--current-suite)))))) + (list buttercup--current-suite))) + buttercup--current-suite))) ;;;;;;;;;;;;; ;;; Specs: it