Skip to content

Commit

Permalink
clojure-jump-to-test should use the same dir/name structure as Lein.
Browse files Browse the repository at this point in the history
Eg. project/test/namespace/test/core
  • Loading branch information
bonega committed Oct 27, 2012
1 parent 2cacb8d commit e753312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1201,9 +1201,9 @@ The arguments are dir, hostname, and port. The return value should be an `alist
(segments (split-string namespace "\\."))
(before (subseq segments 0 clojure-test-ns-segment-position))
(after (subseq segments clojure-test-ns-segment-position))
(newfile (format "%s_test" (car after)))
(newfile (car after))
(test-segments (append before (list newfile))))
(mapconcat 'identity test-segments "/")))
(mapconcat 'identity test-segments "/test/")))

(defun clojure-jump-to-test ()
"Jump from implementation file to test."
Expand Down

0 comments on commit e753312

Please sign in to comment.