summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-05-05 19:38:05 -0400
committerKyle Meyer <kyle@kyleam.com>2017-05-05 19:38:05 -0400
commite0be9b9a015fcce95c9cf8df40dcf78ce307ee81 (patch)
tree4a3fd2b1b25efe20985ccfeef9855498254a516e
parentb0deb8721fb8dabbc95f50900d7beb733805c0ec (diff)
downloadorg-link-edit-e0be9b9a015fcce95c9cf8df40dcf78ce307ee81.tar.gz
tests/transport-next-link: Check "description exists" error
-rw-r--r--test-org-link-edit.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-org-link-edit.el b/test-org-link-edit.el
index da69fd2..9f8a3bd 100644
--- a/test-org-link-edit.el
+++ b/test-org-link-edit.el
@@ -558,6 +558,13 @@ website"
(org-link-edit-transport-next-link
nil (point-min) (point))
(buffer-string))
+ :type 'user-error)
+ ;; Fail if link already has a description.
+ (should-error
+ (org-test-with-temp-text
+ "Here is <point>Org's website \[\[http://orgmode.org/\]\[descrption\]\]"
+ (org-link-edit-transport-next-link)
+ (buffer-string))
:type 'user-error))