File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1003,8 +1003,8 @@ Use `default-directory' if DIR-NAME is nil."
1003
1003
PATH is expected to be an absolute file path.
1004
1004
1005
1005
If PATH is nil, use the path to the file backing the current buffer."
1006
- (let* ((relative (clojure-project-relative-path
1007
- ( or path ( file-truename ( buffer-file-name ))) ))
1006
+ (let* ((path ( or path ( file-truename ( buffer-file-name ))))
1007
+ (relative (clojure-project-relative-path path ))
1008
1008
(sans-file-type (substring relative 0 (- (length (file-name-extension path t )))))
1009
1009
(sans-file-sep (mapconcat 'identity (cdr (split-string sans-file-type " /" )) " ." ))
1010
1010
(sans-underscores (replace-regexp-in-string " _" " -" sans-file-sep)))
Original file line number Diff line number Diff line change 42
42
(cl-letf (((symbol-function 'clojure-project-relative-path )
43
43
(lambda (&optional current-buffer-file-name )
44
44
project-relative-clj-file-path)))
45
- (should (string= (clojure-expected-ns clj-file-path) clj-file-ns)))))
45
+ (should (string= (clojure-expected-ns clj-file-path) clj-file-ns))))
46
+
47
+ (ert-deftest expected-ns-without-argument ()
48
+ :tags '(utils)
49
+ (cl-letf (((symbol-function 'clojure-project-relative-path )
50
+ (lambda (&optional current-buffer-file-name )
51
+ project-relative-clj-file-path)))
52
+ (should (string= (let ((buffer-file-name clj-file-path))
53
+ (clojure-expected-ns))
54
+ clj-file-ns)))))
46
55
47
56
(provide 'clojure-mode-util-test )
48
57
You can’t perform that action at this time.
0 commit comments