aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-commands.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-pearl-commands.el')
-rw-r--r--tests/test-pearl-commands.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-pearl-commands.el b/tests/test-pearl-commands.el
index 77f2d46..ccd39c8 100644
--- a/tests/test-pearl-commands.el
+++ b/tests/test-pearl-commands.el
@@ -98,9 +98,9 @@
(pearl-list-issues-by-project)
(should-not called))))
-;;; pearl-new-issue
+;;; pearl-create-issue
-(ert-deftest test-pearl-new-issue-success-returns-issue ()
+(ert-deftest test-pearl-create-issue-success-returns-issue ()
"new-issue builds the input, sends it, and returns the created issue."
(let ((pearl-default-team-id "team-1"))
(cl-letf (((symbol-function 'read-string)
@@ -120,13 +120,13 @@
(lambda (_q &optional _v)
'((data (issueCreate (success . t)
(issue (id . "i1") (identifier . "ENG-1") (title . "My Issue"))))))))
- (should (string-equal "ENG-1" (cdr (assoc 'identifier (pearl-new-issue))))))))
+ (should (string-equal "ENG-1" (cdr (assoc 'identifier (pearl-create-issue))))))))
-(ert-deftest test-pearl-new-issue-no-team-stops ()
+(ert-deftest test-pearl-create-issue-no-team-stops ()
"new-issue stops cleanly when no team is selected."
(let ((pearl-default-team-id nil))
(cl-letf (((symbol-function 'pearl-select-team) (lambda () nil)))
- (should (progn (pearl-new-issue) t)))))
+ (should (progn (pearl-create-issue) t)))))
;;; pearl-test-connection / check-setup