aboutsummaryrefslogtreecommitdiff
path: root/test/test-perspective.el
diff options
context:
space:
mode:
authorgcv <gepardcv@gmail.com>2019-10-10 09:58:00 -0700
committerGitHub <noreply@github.com>2019-10-10 09:58:00 -0700
commit2e6f76192b192b4e3a3c070f69e6c467401190c1 (patch)
tree42e1ec7b847e588420bd484a5c37c3717ec0022e /test/test-perspective.el
parentecf9daef95d37359ccbc31e9fb093ae5c714c3b4 (diff)
parent5c9f1d573f02567ed5f281e864a34b4503f4be87 (diff)
Merge pull request #81 from gcv/fix-persp-rename-scratch
Rename perspective-specific scratch buffer when perspective is renamed
Diffstat (limited to 'test/test-perspective.el')
-rw-r--r--test/test-perspective.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-perspective.el b/test/test-perspective.el
index fddc8fa..5069cb8 100644
--- a/test/test-perspective.el
+++ b/test/test-perspective.el
@@ -245,4 +245,12 @@ persp-test-make-sample-environment."
(lambda (w) (should-not
(memq (window-buffer w) (list A1 A2))))))))
+(ert-deftest issue-81-renaming-scratch-buffers ()
+ (persp-test-with-persp
+ (persp-switch "A")
+ (should (get-buffer "*scratch* (A)"))
+ (persp-rename "B")
+ (should (not (get-buffer "*scratch* (A)")))
+ (should (get-buffer "*scratch* (B)"))))
+
;;; test-perspective.el ends here