aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-compose.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-pearl-compose.el')
-rw-r--r--tests/test-pearl-compose.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-pearl-compose.el b/tests/test-pearl-compose.el
index 3e62c09..4f4d611 100644
--- a/tests/test-pearl-compose.el
+++ b/tests/test-pearl-compose.el
@@ -21,7 +21,7 @@
;; Tests for the shared compose buffer (`pearl--compose-in-buffer' and its
;; submit/abort/body helpers) and the two commands wired onto it:
-;; `pearl-add-comment' (interactive composer path) and
+;; `pearl-create-comment' (interactive composer path) and
;; `pearl-edit-description'. The body is extracted below a read-only
;; header and converted Org->Markdown by the callers.
@@ -102,7 +102,7 @@ Binds `captured' to the value the on-finish receives (or `:none'). Stubs
(re-search-forward "Body\\.")
,@body)))
-(ert-deftest test-pearl-add-comment-interactive-composes-and-converts ()
+(ert-deftest test-pearl-create-comment-interactive-composes-and-converts ()
"An interactive add-comment composes Org and sends the Markdown conversion."
(test-pearl--in-issue
(let (sent)
@@ -113,11 +113,11 @@ Binds `captured' to the value the on-finish receives (or `:none'). Stubs
(funcall on-finish "see *bold* and `code`")))
((symbol-function 'pearl--create-comment-async)
(lambda (_id body _cb) (setq sent body))))
- (pearl-add-comment) ; interactive form: body nil
+ (pearl-create-comment) ; interactive form: body nil
;; Org markup converted to Markdown before sending
(should (string= "see **bold** and `code`" sent))))))
-(ert-deftest test-pearl-add-comment-with-body-skips-composer ()
+(ert-deftest test-pearl-create-comment-with-body-skips-composer ()
"A non-interactive add-comment with BODY sends it directly, no composer."
(test-pearl--in-issue
(let ((composed nil) sent)
@@ -125,7 +125,7 @@ Binds `captured' to the value the on-finish receives (or `:none'). Stubs
(lambda (&rest _) (setq composed t)))
((symbol-function 'pearl--create-comment-async)
(lambda (_id body _cb) (setq sent body))))
- (pearl-add-comment "literal body")
+ (pearl-create-comment "literal body")
(should-not composed)
(should (string= "literal body" sent))))))