Permalink
Please sign in to comment.
Showing
with
20 additions
and 9 deletions.
13
ring-core/src/ring/util/io.clj
12
ring-core/src/ring/util/test.clj
| @@ -1,10 +1,8 @@ | |||
| (ns ring.util.test | (ns ring.util.test | ||
| "Utilities for testing Ring components." | "Utilities for testing Ring components." | ||
| - (:import java.io.ByteArrayInputStream)) | + (:require [ring.util.io :as io])) | ||
| -(defn string-input-stream | +(def ^{:doc "Returns a ByteArrayInputStream for the given String." | ||
| - "Returns a ByteArrayInputStream for the given String." | + :deprecated "1.1"} | ||
| - ([^String s] | + string-input-stream | ||
| - (ByteArrayInputStream. (.getBytes s))) | + io/string-input-stream) | ||
| - ([^String s encoding] | |||
| - (ByteArrayInputStream. (.getBytes s encoding)))) | |||
4
ring-core/test/ring/util/test/io.clj
0 comments on commit
1e290d3