Skip to content

Commit

Permalink
slurp phantom-test.js resource properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jedahu committed Apr 23, 2012
1 parent 67b5bc0 commit b35abb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cst/src/cst/build.clj
Expand Up @@ -60,7 +60,7 @@
(cond
(= :phantom browser)
(do
(spit ".cst-phantom-test.js" (io/resource "phantom-test.js"))
(spit ".cst-phantom-test.js" (slurp (io/resource "phantom-test.js")))
(let [p (conch/proc "phantomjs" ".cst-phantom-test.js" (str "http://localhost:" (:http cst) "/"))]
(future (conch/stream-to-out p :out))
(future (conch/stream-to-out p :err))
Expand Down

0 comments on commit b35abb4

Please sign in to comment.