summaryrefslogtreecommitdiff
path: root/test/terminal-here-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/terminal-here-test.el')
-rw-r--r--test/terminal-here-test.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/terminal-here-test.el b/test/terminal-here-test.el
index 849f18d..62fc571 100644
--- a/test/terminal-here-test.el
+++ b/test/terminal-here-test.el
@@ -16,7 +16,11 @@
(ert-deftest linux-default-command ()
(with-terminal-here-mocks
- (mock (start-process "x-terminal-emulator" * "x-terminal-emulator"))
+ (mock
+ (start-process (terminal-here-find-executable
+ terminal-here-terminal-emulators)
+ * (terminal-here-find-executable
+ terminal-here-terminal-emulators)))
(let ((system-type 'gnu/linux))
(custom-reevaluate-setting 'terminal-here-terminal-command)
(terminal-here-launch-in-directory "adir"))))
@@ -106,6 +110,7 @@
(setq launch-command command))))
(validate-setq terminal-here-command-flag "-k")
(terminal-here-launch-in-directory "/ssh:david@pi:/home/pi/")
- (should (equal (car launch-command) "x-terminal-emulator"))
+ (should (equal (car launch-command) (terminal-here-find-executable
+ terminal-here-terminal-emulators)))
(should (equal (cadr launch-command) "-k"))
(should (equal (caddr launch-command) "ssh"))))