File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,11 @@ won't run if there is a broken namespace in the project."
211
211
:group 'cljr
212
212
:type 'string )
213
213
214
+ (defcustom cljr-clojure-test-namespace-under-test-alias " sut"
215
+ " The package alias to use for the namespace under test."
216
+ :group 'cljr
217
+ :type 'string )
218
+
214
219
(defcustom cljr-inject-dependencies-at-jack-in t
215
220
" When nil, do not inject repl dependencies (most likely nREPL middlewares) at `cider-jack-in' time."
216
221
:group 'cljr
@@ -1017,7 +1022,8 @@ If CLJS? is T we insert in the cljs part of the ns declaration."
1017
1022
(source-ns (cljr--find-source-ns-of-test-ns ns (buffer-file-name ))))
1018
1023
(cljr--insert-in-ns " :require" )
1019
1024
(when source-ns
1020
- (insert " [" source-ns " :as sut]" ))
1025
+ (insert " [" source-ns " :as "
1026
+ cljr-clojure-test-namespace-under-test-alias " ]" ))
1021
1027
(cljr--insert-in-ns " :require" )
1022
1028
(insert (cond
1023
1029
((cljr--project-depends-on-p " midje" )
You can’t perform that action at this time.
0 commit comments