-
-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make TRAMP functionality work when using non-standard ports
- Loading branch information
Showing
3 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,9 +68,15 @@ | |
|
||
(describe "cider-make-tramp-prefix" | ||
(it "returns tramp-prefix only" | ||
;;; The third parameter is a host. It must contains a port number. | ||
;;; The third parameter is a host. | ||
(expect (cider-make-tramp-prefix "ssh" "cider-devs" "192.168.50.9#22") | ||
:to-equal "/ssh:[email protected]#22:") | ||
(expect (cider-make-tramp-prefix "ssh" "cider-devs" "192.168.50.9") | ||
:to-equal "/ssh:[email protected]#22:") | ||
(expect (cider-make-tramp-prefix "ssh" "cider-devs" "192.168.50.9" "12345") | ||
:to-equal "/ssh:[email protected]#12345:") | ||
(expect (cider-make-tramp-prefix "ssh" "cider-devs" "192.168.50.9#12345") | ||
:to-equal "/ssh:[email protected]#12345:") | ||
;;; These two cases are for using ssh config alias. | ||
(expect (cider-make-tramp-prefix "ssh" nil "test.cider.com") | ||
:to-equal "/ssh:test.cider.com:") | ||
|