Closed nlamirault closed 10 years ago
(ert-deftest test-perspective ()
(with-current-file "var/hello.php"
(persp-mode)
(should (require 'persp-projectile))
(should (eql 'projectile-find-file (key-binding (kbd "C-c p f"))))
(should (eql 'persp-switch (key-binding (kbd "C-x x s"))))
(should (eql 'persp-remove-buffer (key-binding (kbd "C-x x k"))))
(should (eql 'persp-kill (key-binding (kbd "C-x x c"))))
(should (eql 'persp-rename (key-binding (kbd "C-x x r"))))
(should (eql 'persp-add-buffer (key-binding (kbd "C-x x a"))))
(should (eql 'persp-import (key-binding (kbd "C-x x i"))))
(should (eql 'persp-next (key-binding (kbd "C-x x n"))))
(should (eql 'persp-prev (key-binding (kbd "C-x x p"))))))
Current unit test :
Result :
But it works fine in Emacs instance.