Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add breaking test for #742

  • Loading branch information...
commit d7488b2bf908f23d0380bd8df5a8b8020f8643f0 1 parent cc7d759
@ninjudd ninjudd authored
View
4 leiningen-core/dev-resources/p2.clj
@@ -1,3 +1,3 @@
-(defproject middler "2.0.0-SNAPSHOT"
- :description "Automate Clojure projects without setting your hair on fire."
+(defproject middler "0.0.1"
+ :description "Test some middleware."
:middleware [leiningen.core.test.project/add-seven])
View
4 leiningen-core/dev-resources/p3.clj
@@ -0,0 +1,4 @@
+(defproject middlest "0.0.1"
+ :description "Test explicit middleware inside a plugin."
+ :plugins [[lein-maven "0.1.0"]]
+ :middleware [leiningen.mvn/maven-checkouts])
View
6 leiningen-core/test/leiningen/core/test/project.clj
@@ -121,6 +121,12 @@
(deftest test-middleware
(is (= 7 (:seven (init-project (read (.getFile (io/resource "p2.clj"))))))))
+(deftest test-activate-middleware
+ (is (= ""
+ (with-out-str
+ (binding [*err* *out*]
+ (init-project (read (.getFile (io/resource "p3.clj")))))))))
+
(deftest test-add-profiles
(let [expected-result {:dependencies [] :profiles {:a1 {:src-paths ["a1/"]}
:a2 {:src-paths ["a2/"]}}}]
Please sign in to comment.
Something went wrong with that request. Please try again.