[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 6590360 226/340: Fix a few typos and other small
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 6590360 226/340: Fix a few typos and other small errors |
Date: |
Thu, 16 Dec 2021 14:59:39 -0500 (EST) |
branch: elpa/buttercup
commit 65903604d1855c3bfad24c54682172309f9d67e5
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>
Fix a few typos and other small errors
---
buttercup.el | 4 ++--
tests/test-buttercup.el | 13 +++++--------
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index fdddc7e..a360a4b 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -1133,8 +1133,8 @@ responsibility to ensure ARG is a command."
:return-value nil
:thrown-signal err
:current-buffer (current-buffer))))
- ;; Regardless, we only caught this error order to record
- ;; it, so we need to re-throw it.
+ ;; Regardless, we only caught this error in order to
+ ;; record it, so we need to re-throw it.
(signal (car err) (cdr err)))))))
;; Add the interactive form from `fun', if any
(when (interactive-form fun)
diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index 8c27bf8..c2e8317 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -619,8 +619,6 @@
;; We use `before-all' here because some tests need to access the
;; same function as previous tests in order to work, so overriding
;; the function before each test would invalidate those tests.
- ;; Unfortunately there's no way to do this lexically, so these
- ;; function definitions are leaked after the tests run.
(before-all
(setq saved-test-function (and (fboundp 'test-function)
(symbol-function 'test-function))
@@ -644,8 +642,8 @@
(fset 'test-command saved-test-command)
(fmakunbound 'test-command))
(if saved-test-function-throws-on-negative
- (fset 'test-test-function-throws-on-negative
- test-function-throws-on-negative)
+ (fset 'test-function-throws-on-negative
+ saved-test-function-throws-on-negative)
(fmakunbound 'test-function-throws-on-negative)))
(describe "`spy-on' function"
@@ -936,10 +934,9 @@
(expect (spy-context-thrown-signal
(spy-calls-first 'test-function-throws-on-negative))
:to-be nil)
- (expect (car
- (spy-context-thrown-signal
- (spy-calls-most-recent 'test-function-throws-on-negative)))
- :to-be 'error)))))
+ (expect (spy-context-thrown-signal
+ (spy-calls-most-recent 'test-function-throws-on-negative))
+ :to-equal '(error "x is less than zero"))))))
;;;;;;;;;;;;;
;;; Reporters
- [nongnu] elpa/buttercup b410c78 193/340: Separate return code from reporter, (continued)
- [nongnu] elpa/buttercup b410c78 193/340: Separate return code from reporter, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9b230dc 202/340: Fix the "should print the elapsed time for all specs" test, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9d172a7 205/340: Merge pull request #145 from snogge/test-fixes, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c100fad 210/340: Implement buttercup-suppress-warning-capture, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c994aea 212/340: Add LICENSE file., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d9ce620 213/340: Merge branch 'license-file' into master, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 49f01fc 219/340: Merge branch 'master' into test-emacs-26.3, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 25462dd 223/340: Record calls to spied-on functions that throw errors, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bf48137 224/340: Add some tests for error-call recording, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup fc19598 225/340: Add examples for checking return value and thrown signal of a spy, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6590360 226/340: Fix a few typos and other small errors,
ELPA Syncer <=
- [nongnu] elpa/buttercup 8a28489 230/340: Bump version: 1.18 → 1.19, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 0e40587 231/340: Tweak the spy-contexts to be more backward compatible, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 60028db 236/340: docs: Clarify the spy lifespan in writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 9c4b473 237/340: test: Add missing apostrophe in spec title, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 90654ec 238/340: Update some docstrings, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 178c795 242/340: README: Add '-L .' to test runner example, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup fc4276a 247/340: Make it possible to abort test run cleanly, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup dbcd3d4 256/340: Calculate total test run time with current-time, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c83ba7d 268/340: Extract function buttercup-elapsed-time-string, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 38cfa6f 270/340: Fix spy-on on Emacs 24.3 for symbols that are not fbound, ELPA Syncer, 2021/12/16