From 25ea40547887467e62b610c01112e2d3d4073202 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sat, 25 Mar 2017 01:39:20 +0100 Subject: [PATCH] Added ERT test for message when returning URL --- test/webpaste-test.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/webpaste-test.el b/test/webpaste-test.el index f7c5d34..d9cfe42 100644 --- a/test/webpaste-test.el +++ b/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/")))