[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste b96e411 204/298: Moved the paste message to be a
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste b96e411 204/298: Moved the paste message to be a variable used for all integration tests |
Date: |
Thu, 9 Dec 2021 19:00:14 -0500 (EST) |
branch: elpa/webpaste
commit b96e4117825818d81a143215c4006c448b569e49
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Moved the paste message to be a variable used for all integration tests
---
tests/integration/test-webpaste-providers.el | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/tests/integration/test-webpaste-providers.el
b/tests/integration/test-webpaste-providers.el
index a0db749..4cc24dd 100644
--- a/tests/integration/test-webpaste-providers.el
+++ b/tests/integration/test-webpaste-providers.el
@@ -8,9 +8,12 @@
(describe
"Test provider with dummy data so it"
+ :var (paste-message)
(before-each
;; Block requests
+ (setq paste-message ";; This is a build artifact created by an integration
test for https://github.com/etu/webpaste.el")
+
(spy-on 'webpaste--paste-text)
(spy-on 'webpaste--return-url))
@@ -20,7 +23,7 @@
(let ((provider (webpaste--get-provider-by-name "ptpb.pw")))
(funcall
provider
- ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ paste-message
:sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
@@ -29,7 +32,7 @@
(expect (spy-calls-most-recent 'webpaste--return-url)
:to-equal
(make-spy-context :current-buffer (current-buffer)
- :args '("https://ptpb.pw/gLC6")
+ :args '("https://ptpb.pw/h54Z")
:return-value nil))))
@@ -39,7 +42,7 @@
(let ((provider (webpaste--get-provider-by-name "ix.io")))
(funcall
provider
- ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ paste-message
:sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
@@ -48,7 +51,7 @@
(expect (spy-calls-most-recent 'webpaste--return-url)
:to-equal
(make-spy-context :current-buffer (current-buffer)
- :args '("http://ix.io/whJ")
+ :args '("http://ix.io/xFF")
:return-value nil))))
@@ -58,7 +61,7 @@
(let ((provider (webpaste--get-provider-by-name "sprunge.us")))
(funcall
provider
- ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ paste-message
:sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
@@ -71,7 +74,7 @@
(let ((provider (webpaste--get-provider-by-name "dpaste.com")))
(funcall
provider
- ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ paste-message
:sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
@@ -84,7 +87,7 @@
(let ((provider (webpaste--get-provider-by-name "dpaste.de")))
(funcall
provider
- ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ paste-message
:sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
@@ -100,7 +103,7 @@
(let ((provider (webpaste--get-provider-by-name "gist.github.com")))
(funcall
provider
- ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ paste-message
:sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
@@ -113,7 +116,7 @@
(let ((provider (webpaste--get-provider-by-name "paste.pound-python.org")))
(funcall
provider
- ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ paste-message
:sync t)
(expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
- [nongnu] elpa/webpaste d475f02 170/298: Added integration test for ptpb.pw, (continued)
- [nongnu] elpa/webpaste d475f02 170/298: Added integration test for ptpb.pw, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 95de0b8 169/298: Remove sync as a provider parameter on creation and add it on execution, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste fd4332a 172/298: Merge branch 'test-providers-on-travis', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 60c0a98 167/298: Added printing of travis event type, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d0442ad 168/298: Renamed all unit tests to make it easier for integration tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cac4979 173/298: Added option to send returned URL to clpboard, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste db393a1 175/298: Merge branch 'naclander-copy-to-clipboard', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 92f309e 188/298: Added a contributing guidelines file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ddd2fca 186/298: Added tests for success lambdas, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2a05d02 194/298: Added supports for custom hooks when returning URLs. This fixes #22., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b96e411 204/298: Moved the paste message to be a variable used for all integration tests,
ELPA Syncer <=
- [nongnu] elpa/webpaste 26f089e 201/298: Rename webpaste-paste-text and webpaste-paste-text-to-provider to be in "private scope", ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 90a96d2 199/298: Change emacs-lisp-mode from elisp to clojure for sprunge.us, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4b32baa 203/298: Rename all the lambdas to private scopes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cc9ba3d 202/298: Begin autoloading of the webpaste group, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste aed3e00 210/298: Bump version for new release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b8f300f 209/298: Add pattern for buttercup to not run gists.github.com on travis, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4bd15f8 227/298: Add a nix-shell file for some development utils, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f047313 219/298: Update the custom hook example to actually need to be a lambda, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ac24701 214/298: Merge branch 'DamienCassou-simplify-travis', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6a02ff9 185/298: Added tests for error lambdas and failovers, ELPA Syncer, 2021/12/09