Added integration tests for dpaste.de

master
Elis Axelsson 9 years ago
parent 6086556d66
commit 6b0043b2d8
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 13
      tests/integration/test-webpaste-providers.el

@ -74,6 +74,19 @@
";; This is a build artifact made from an integration test for https://github.com/etu/webpaste.el" ";; This is a build artifact made from an integration test for https://github.com/etu/webpaste.el"
:sync t) :sync t)
(expect (spy-calls-count 'webpaste-return-url) :to-equal 1)
(expect (spy-calls-count 'webpaste-paste-text) :to-equal 0)))
(it
"can paste with dpaste.de"
(let ((provider (cadr (assoc "dpaste.de" 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-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))))

Loading…
Cancel
Save