From a047f6fa23f4c73cb2aa93859e1f86ed07259fab Mon Sep 17 00:00:00 2001 From: Nelson Morris Date: Sat, 26 May 2012 00:14:25 -0500 Subject: [PATCH] Enable pom tests --- test/leiningen/test/pom.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/leiningen/test/pom.clj b/test/leiningen/test/pom.clj index 0cc54bebb..899932aca 100644 --- a/test/leiningen/test/pom.clj +++ b/test/leiningen/test/pom.clj @@ -9,10 +9,10 @@ (use-fixtures :once (fn [f] (with-redefs [user/profiles (constantly {})] - f))) + (f)))) (deftest test-pom-file-is-created - (let [pom-file (file (:target-path sample-project) "pom.xml")] + (let [pom-file (file (:root sample-project) "pom.xml")] (delete-file pom-file true) (pom sample-project) (is (.exists pom-file)))) @@ -183,6 +183,7 @@ (is (= ["ring-mock" nil nil nil] (map #(first-in % [:dependency :exclusions :exclusion :artifactId]) (deep-content xml [:project :dependencies])))) + (is (= ["cla" nil nil nil] (map #(first-in % [:dependency :exclusions :exclusion :classifier]) (deep-content xml [:project :dependencies]))))