Liking cljdoc? Tell your friends :D

clj-github.test-helpers


-add-default-content-typeclj

(-add-default-content-type response)
source

add-default-content-typeclj

(add-default-content-type response)
source

build-specclj

(build-spec spec)
source

spec-buildercljmultimethod

source

with-fake-githubcljmacro

(with-fake-github spec & body)

A wrapper around with-fake-http that sets up some defaults for GitHub access.

with-fake-http is organized with the expectation that request and response specs are values; any function calls used to generate the specs look to it as if they are function values that will (for requests) match or (for responses) build the response from the request map.

The ^:path metadata may precede a form to indicate that the form is an expression that computes the path.

The response may be any value supported by with-fake-http (map, integer, string, function, etc.). However, the response Content-Type header is forced to "application/json", so the body (if provided) must be a JSON value encoded as string.

A wrapper around `with-fake-http` that sets up some defaults for GitHub access.

`with-fake-http` is organized with the expectation that request and response specs
are values; any function calls used to generate the specs look to it as if they are
function values that will (for requests) match or (for responses) build the response from
the request map.

The ^:path metadata may precede a form to indicate that the form is an expression
that computes the path.

The response may be any value supported by `with-fake-http` (map, integer, string, function, etc.).
However, the response Content-Type header is forced to "application/json", so the body (if provided)
must be a JSON value encoded as string.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close