Skip to content

Commit

Permalink
Enable pom tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xeqi committed May 26, 2012
1 parent 6ed63b0 commit a047f6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/leiningen/test/pom.clj
Expand Up @@ -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))))
Expand Down Expand Up @@ -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]))))
Expand Down

0 comments on commit a047f6f

Please sign in to comment.