noir.util.test documentation

A set of utilities for testing a Noir project

has-body

(has-body resp cont)
Asserts that the response has the given body

has-content-type

(has-content-type resp ct)
Asserts that the response has the given content type

has-status

(has-status resp stat)
Asserts that the response has the given status

send-request

(send-request route & [params])
Send a request to the Noir handler. Unlike with-noir, this will run
the request within the context of all middleware.

send-request-map

(send-request-map ring-req)
Send a ring-request map to the noir handler.

with-noir

(with-noir & body)
Executes the body within the context of Noir's bindings