Skip to content

EchoTeam/clj-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Extract clojure.contrib.mock as separate library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published