Permalink
Browse files

Fix test for -main rename.

  • Loading branch information...
1 parent 8c2244d commit 226cdecb33e6d2cbafe1c443c38a3f8d80d63192 @technomancy committed Dec 26, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 test/slam/hound_test.clj
View
@@ -1,7 +1,7 @@
(ns slam.hound-test
(:require [clojure.java.io :as io]
[clojure.test :refer [deftest is testing]]
- [slam.hound :refer [reconstruct reconstruct-in-place]])
+ [slam.hound :refer [reconstruct -main]])
(:import (java.io File StringReader)))
(def basic-ns (str '(ns slamhound.sample
@@ -85,11 +85,10 @@
'(defn do-it! []
(join "," ["a" "b" "c"])))))))))
-(deftest ^:integration test-reconstruct-in-place
+(deftest ^:integration test-main
(let [tmp (doto (File/createTempFile "test_namespace_copy" ".clj")
.deleteOnExit)]
(io/copy (io/reader (io/resource "test_namespace.clj")) tmp)
- (reconstruct-in-place tmp)
-
+ (-main tmp)
(is (= (slurp (io/resource "reconstructed_namespace.clj"))
(slurp tmp)))))

0 comments on commit 226cdec

Please sign in to comment.