[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-simulated-input d0f7795942 034/134: Update buttercup
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-simulated-input d0f7795942 034/134: Update buttercup |
Date: |
Mon, 10 Jan 2022 23:00:02 -0500 (EST) |
branch: elpa/with-simulated-input
commit d0f779594243fe85e330fd3f47caeb80068f7134
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>
Update buttercup
---
Cask | 6 +-----
tests/test-with-simulated-input.el | 25 ++++++++++++-------------
2 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/Cask b/Cask
index 02b30015b4..d5823a685d 100644
--- a/Cask
+++ b/Cask
@@ -10,9 +10,5 @@
(depends-on "s")
(development
- (depends-on "buttercup"
- :git "https://github.com/DarwinAwardWinner/emacs-buttercup.git"
- :branch "show-exprs"
- :files ("*.el"
- ("bin" "bin/*")))
+ (depends-on "buttercup")
(depends-on "undercover"))
diff --git a/tests/test-with-simulated-input.el
b/tests/test-with-simulated-input.el
index ea0f50f638..bb597315a2 100644
--- a/tests/test-with-simulated-input.el
+++ b/tests/test-with-simulated-input.el
@@ -22,17 +22,16 @@
(it "should throw an error if the input is incomplete"
(expect
- (lambda ()
- (with-simulated-input "hello"
- (read-string "Enter a string: ")))
+ (with-simulated-input "hello"
+ (read-string "Enter a string: "))
:to-throw))
(it "should allow the input to trigger errors"
(expect
- (lambda ()
- (with-simulated-input
- "(error SPC \"Manually SPC throwing SPC an SPC error\") RET"
- (command-execute 'eval-expression)))
+
+ (with-simulated-input
+ "(error SPC \"Manually SPC throwing SPC an SPC error\") RET"
+ (command-execute 'eval-expression))
:to-throw))
(it "should ignore extra input after BODY has completed"
@@ -83,9 +82,9 @@
;; Suppress messages by replacing `message' with a stub
(spy-on 'message)
(expect
- (lambda ()
- (with-simulated-input "bl TAB C-j"
- (completing-read "Choose: " mycollection nil t)))
+
+ (with-simulated-input "bl TAB C-j"
+ (completing-read "Choose: " mycollection nil t))
:to-throw)))
(describe "using lisp forms in KEYS argument of `with-simulated-input'"
@@ -98,9 +97,9 @@
(it "should allow lisp forms to throw errors"
(expect
- (lambda ()
- (with-simulated-input '("hello SPC" (error "Throwing an error") "RET")
- (read-string "Enter a string: ")))
+
+ (with-simulated-input '("hello SPC" (error "Throwing an error") "RET")
+ (read-string "Enter a string: "))
:to-throw))
(it "should not interpret lisp forms once BODY has finished"
- [nongnu] elpa/with-simulated-input 322dc7ed95 008/134: Add some more tests, (continued)
- [nongnu] elpa/with-simulated-input 322dc7ed95 008/134: Add some more tests, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4c68e02cc1 010/134: Allow evaluating lisp forms while simulating input, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 5701347987 013/134: Update the readme with new instructions for running tests, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input ad9eaf2252 014/134: Add info on idle simulation to README, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4932368712 016/134: Add MELPA links, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 33b40e59a1 018/134: Fix indentation, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 004218b75c 023/134: Add more info to docstring for wsi-simulated-idle-time, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 395a985348 026/134: Use gensym to generate the canary symbol, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input e66a24d067 031/134: Add Makefile and code coverage, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1012ccbec7 033/134: Convert defadvice to advice-add, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input d0f7795942 034/134: Update buttercup,
ELPA Syncer <=
- [nongnu] elpa/with-simulated-input af9a38ce28 036/134: Add LICENSE file, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 3b847dec31 037/134: Add tests for wsi-get-unbound-key, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input a718d66c5d 039/134: Don't generate a new canary for each call, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input e8738fe72c 040/134: Fix issue #4 and add a test for it, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 011183121d 042/134: Remove Emacs 26.3 from Travis config, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input d66b8b853f 041/134: Test in Emacs 26 on Travis, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 3d88179352 044/134: Version 2.4, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input b030953ca0 050/134: Fix a bug with actually-wait, and add tests for it, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input a71ecf18f7 051/134: Fix a bug in current-idle-time advice and add a test for it, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input ea666ecab7 064/134: Remove hacky closure modification, ELPA Syncer, 2022/01/10