Extract clojure.contrib.mock as separate library
Clojure
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/echo/test
test/echo/test
.gitignore
README.md
project.clj

README.md

mock

Extract clojure.contrib.mock as separate library

##Usage

Mock API

(expect [slurp (->>
                 (has-args [#(re-find #"^http://google.com/" %)])
                 (times once)
                 (returns "success"))]
  (is (= "success" (slurp "http://google.com/test")))))

Installation

Depend on [org.clojars.echo/test.mock "0.1.2"] in your project.clj

License

Distributed under the Eclipse Public License, the same as Clojure.