Added ERT test for message when returning URL

master
Elis Axelsson 9 years ago
parent 8861ed8c10
commit 25ea405478
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 6
      test/webpaste-test.el

@ -9,8 +9,12 @@
(ert-deftest webpaste-test/return-url ()
"Test returning of URL's to the user."
(webpaste-return-url "https://example.com/")
;; Test to return a link and check that the message logged is the expected one
(should (equal
(webpaste-return-url "https://example.com/")
"Added https://example.com/ to kill ring."))
;; Check so the kill ring contain the correct contents
(should (equal (car kill-ring) "https://example.com/")))

Loading…
Cancel
Save