aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-output.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-pearl-output.el')
-rw-r--r--tests/test-pearl-output.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-pearl-output.el b/tests/test-pearl-output.el
index 1035ff2..66dc096 100644
--- a/tests/test-pearl-output.el
+++ b/tests/test-pearl-output.el
@@ -214,6 +214,19 @@ appear -- a minimal preamble of just the machine keywords."
(should (string-match-p " · 1" s)) ; one rendered issue
(should (string-match-p "·" s)))))
+(ert-deftest test-pearl-preamble-summary-names-the-account ()
+ "In accounts mode the summary names the active account after Pearl, so two
+buffers from different workspaces read differently."
+ (with-temp-buffer
+ (insert (pearl--build-org-content
+ '((:id "i1" :identifier "ENG-1" :title "one" :priority 1
+ :state (:name "In Progress") :team (:id "t1")))
+ '(:type filter :name "My open work" :filter (:assignee :me :open t))
+ nil nil "deepsat"))
+ (org-mode)
+ (goto-char (point-min))
+ (should (string-prefix-p "Pearl - deepsat - My open work" (pearl--preamble-summary)))))
+
(ert-deftest test-pearl-hide-preamble-lays-one-tagged-overlay ()
"With the option on, one tagged display overlay covers the preamble; applying
twice keeps exactly one (idempotent); off removes it. Buffer text is untouched."