Added integration test for sprunge.us

master
Elis Axelsson 9 years ago
parent 54e2ed44f0
commit 0c814bc312
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 15
      tests/integration/test-webpaste-providers.el

@ -49,7 +49,20 @@
:to-equal
(make-spy-context :current-buffer (current-buffer)
:args '("http://ix.io/whJ")
:return-value nil)))))
:return-value nil))))
(it
"can paste with sprunge.us"
(let ((provider (cadr (assoc "sprunge.us" webpaste-providers-alist))))
(funcall
provider
";; This is a build artifact made from an integration test for https://github.com/etu/webpaste.el"
: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

Loading…
Cancel
Save