Permalink
Browse files

Merge pull request #101 from bonega/test-structure-fix

clojure-jump-to-test should use the same dir/name structure as Lein.
  • Loading branch information...
technomancy committed Nov 3, 2012
2 parents f8f10f8 + e753312 commit d6c5f661d64c39497f052acc092a8669bcb6f10c
Showing with 2 additions and 2 deletions.
  1. +2 −2 clojure-mode.el
View
@@ -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."

0 comments on commit d6c5f66

Please sign in to comment.