Skip to content

Commit

Permalink
add simple test for certificate processing.
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Niklas L'orange <[email protected]>
  • Loading branch information
Yannick Scherer authored and hypirion committed Jul 26, 2015
1 parent 1f43aa0 commit da574d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions leiningen-core/test/leiningen/core/test/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@
(init-project (read (.getFile (io/resource "p3.clj")))))
(is (= [] @errors))))

(deftest test-certificates
(let [project {:certificates ["clojars.pem"]}]
(is (-> (init-project project) :certificates seq))))

(deftest test-plugin-vars
(are [project hooks middleware] (= (list hooks middleware)
(map (partial plugin-vars project) [:hooks :middleware]))
Expand Down

0 comments on commit da574d7

Please sign in to comment.