Skip to content

Commit 486990e

Browse files
vemvbbatsov
authored andcommitted
Use :middleware, singular
`:middlewares` was a typo.
1 parent dc22166 commit 486990e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cider.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ removed, LEIN-PLUGINS, LEIN-MIDDLEWARES and finally PARAMS."
629629
(cider--list-as-lein-artifact plugin)))
630630
lein-plugins)
631631
(seq-map (lambda (middleware)
632-
(concat "update-in :middlewares conj "
632+
(concat "update-in :middleware conj "
633633
middleware))
634634
lein-middlewares))
635635
" -- ")

test/cider-tests.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
(shell-quote-argument "[cider/cider-nrepl \"0.10.0-SNAPSHOT\"]")
125125
" -- update-in :plugins conj "
126126
(shell-quote-argument "[mx.cider/enrich-classpath \"1.5.0\"]")
127-
" -- update-in :middlewares conj cider.enrich-classpath/middleware"
127+
" -- update-in :middleware conj cider.enrich-classpath/middleware"
128128
" -- repl :headless")))
129129

130130
(it "can inject dependencies in a lein project with an exclusion"
@@ -137,7 +137,7 @@
137137
(shell-quote-argument "[cider/cider-nrepl \"0.10.0-SNAPSHOT\"]")
138138
" -- update-in :plugins conj "
139139
(shell-quote-argument "[mx.cider/enrich-classpath \"1.5.0\"]")
140-
" -- update-in :middlewares conj cider.enrich-classpath/middleware"
140+
" -- update-in :middleware conj cider.enrich-classpath/middleware"
141141
" -- repl :headless")))
142142

143143
(it "can inject dependencies in a lein project with multiple exclusions"
@@ -149,7 +149,7 @@
149149
(shell-quote-argument "[cider/cider-nrepl \"0.10.0-SNAPSHOT\"]")
150150
" -- update-in :plugins conj "
151151
(shell-quote-argument "[mx.cider/enrich-classpath \"1.5.0\"]")
152-
" -- update-in :middlewares conj cider.enrich-classpath/middleware"
152+
" -- update-in :middleware conj cider.enrich-classpath/middleware"
153153
" -- repl :headless")))
154154

155155
(it "can inject dependencies in a boot project"
@@ -184,7 +184,7 @@
184184
(shell-quote-argument "[cider/cider-nrepl \"0.11.0\"]")
185185
" -- update-in :plugins conj "
186186
(shell-quote-argument "[mx.cider/enrich-classpath \"1.5.0\"]")
187-
" -- update-in :middlewares conj cider.enrich-classpath/middleware"
187+
" -- update-in :middleware conj cider.enrich-classpath/middleware"
188188
" -- repl :headless")))
189189

190190
(it "can inject dependencies in a boot project"
@@ -217,7 +217,7 @@
217217
(shell-quote-argument "[cider/cider-nrepl \"0.11.0\"]")
218218
" -- update-in :plugins conj "
219219
(shell-quote-argument "[mx.cider/enrich-classpath \"1.5.0\"]")
220-
" -- update-in :middlewares conj cider.enrich-classpath/middleware"
220+
" -- update-in :middleware conj cider.enrich-classpath/middleware"
221221
" -- repl :headless")))
222222
(it "can concat in a boot project"
223223
(expect (cider-inject-jack-in-dependencies "-C -o" "repl -s wait" 'boot)
@@ -293,7 +293,7 @@
293293
(shell-quote-argument "[cider/cider-nrepl \"0.11.0\"]")
294294
" -- update-in :plugins conj "
295295
(shell-quote-argument "[mx.cider/enrich-classpath \"1.5.0\"]")
296-
" -- update-in :middlewares conj cider.enrich-classpath/middleware"
296+
" -- update-in :middleware conj cider.enrich-classpath/middleware"
297297
" -- repl :headless"))))
298298

299299
(describe "when the middleware and plugin lists have been normalized (Boot)"

0 commit comments

Comments
 (0)