branch: elpa/webpaste commit 5ac7d23765fb2336f81595742fd88d05cd6de774 Author: Alberto Donato <alberto.don...@gmail.com> Commit: Alberto Donato <alberto.don...@gmail.com>
add tests --- tests/integration/test-webpaste-providers.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/integration/test-webpaste-providers.el b/tests/integration/test-webpaste-providers.el index 371df44dbc..b7123b85fb 100644 --- a/tests/integration/test-webpaste-providers.el +++ b/tests/integration/test-webpaste-providers.el @@ -82,7 +82,16 @@ (funcall (webpaste--get-provider-by-name "bpa.st") paste-message :sync t) (expect (spy-calls-count 'webpaste--return-url) :to-equal 1) - (expect (spy-calls-count 'webpaste--paste-text) :to-equal 0))) + (expect (spy-calls-count 'webpaste--paste-text) :to-equal 0)) + + (it + "can paste with paste.ubuntu.com [ci]" + + (spy-on 'file-name-nondirectory :and-return-value "file.txt") + + (funcall (webpaste--get-provider-by-name "paste.ubuntu.com") paste-message :sync t) + (expect (spy-calls-count 'webpaste--return-url) :to-equal 1) + (expect (spy-calls-count 'webpaste--paste-text) :to-equal 0))) ;;; test-webpaste-providers.el ends here