diff options
author | Ola Nilsson <ola.nilsson@gmail.com> | 2020-02-24 19:46:37 +0100 |
---|---|---|
committer | Ola Nilsson <ola.nilsson@gmail.com> | 2020-02-24 22:54:17 +0100 |
commit | 373415228ac9ca46311ea9afeaea0cd23949fd54 (patch) | |
tree | bc395c46e0262c8c47700483489b2fe4f6de4a0d | |
parent | 7903e1ae21b8e80ed3a983c9e90dfbf4979e1fb3 (diff) |
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.
-rw-r--r-- | buttercup.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 |