API for noir.util.test
- ()
Usage:
(ns your-namespace
(:require noir.util.test))
Overview
A set of utilities for testing a Noir project
Public Variables and Functions
has-body
function
Usage: (has-body resp cont)
Asserts that the response has the given body
has-content-type
function
Usage: (has-content-type resp ct)
Asserts that the response has the given content type
has-status
function
Usage: (has-status resp stat)
Asserts that the response has the given status
send-request
function
Usage: (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.
with-noir
macro
Usage: (with-noir & body)
Executes the body within the context of Noir's bindings