Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (9 sloc) 3.372 kb
<!DOCTYPE html>
<html><head><link href="css/default.css" rel="stylesheet" type="text/css"><script src="js/jquery.min.js" type="text/javascript"></script><script src="js/page_effects.js" type="text/javascript"></script><title>noir.util.test documentation</title></head><body><div id="header"><h1><a href="index.html">Noir 1.3.0-beta1 API documentation</a></h1></div><div class="sidebar" id="namespaces"><h3>Namespaces</h3><ul><li><a href="noir.cookies.html"><span>noir.cookies</span></a></li><li><a href="noir.core.html"><span>noir.core</span></a></li><li><a href="noir.options.html"><span>noir.options</span></a></li><li><a href="noir.request.html"><span>noir.request</span></a></li><li><a href="noir.response.html"><span>noir.response</span></a></li><li><a href="noir.server.html"><span>noir.server</span></a></li><li><a href="noir.server.handler.html"><span>noir.server.handler</span></a></li><li><a href="noir.session.html"><span>noir.session</span></a></li><li><a href="noir.statuses.html"><span>noir.statuses</span></a></li><li><a href="noir.util.crypt.html"><span>noir.util.crypt</span></a></li><li><a href="noir.util.gae.html"><span>noir.util.gae</span></a></li><li class="current"><a href="noir.util.test.html"><span>noir.util.test</span></a></li><li><a href="noir.validation.html"><span>noir.validation</span></a></li></ul></div><div class="sidebar" id="vars"><h3>Public Vars</h3><ul><li><a href="noir.util.test.html#var-has-body"><span>has-body</span></a></li><li><a href="noir.util.test.html#var-has-content-type"><span>has-content-type</span></a></li><li><a href="noir.util.test.html#var-has-status"><span>has-status</span></a></li><li><a href="noir.util.test.html#var-send-request"><span>send-request</span></a></li><li><a href="noir.util.test.html#var-send-request-map"><span>send-request-map</span></a></li><li><a href="noir.util.test.html#var-with-noir"><span>with-noir</span></a></li></ul></div><div class="namespace-docs" id="content"><h2>noir.util.test documentation</h2><pre class="doc">A set of utilities for testing a Noir project
</pre><div class="public" id="var-has-body"><h3>has-body</h3><div class="usage"><code>(has-body resp cont)</code></div><pre class="doc">Asserts that the response has the given body
</pre></div><div class="public" id="var-has-content-type"><h3>has-content-type</h3><div class="usage"><code>(has-content-type resp ct)</code></div><pre class="doc">Asserts that the response has the given content type
</pre></div><div class="public" id="var-has-status"><h3>has-status</h3><div class="usage"><code>(has-status resp stat)</code></div><pre class="doc">Asserts that the response has the given status
</pre></div><div class="public" id="var-send-request"><h3>send-request</h3><div class="usage"><code>(send-request route &amp; [params])</code></div><pre class="doc">Send a request to the Noir handler. Unlike with-noir, this will run
the request within the context of all middleware.</pre></div><div class="public" id="var-send-request-map"><h3>send-request-map</h3><div class="usage"><code>(send-request-map ring-req)</code></div><pre class="doc">Send a ring-request map to the noir handler.
</pre></div><div class="public" id="var-with-noir"><h3>with-noir</h3><div class="usage"><code>(with-noir &amp; body)</code></div><pre class="doc">Executes the body within the context of Noir's bindings
</pre></div></div></body></html>
Jump to Line
Something went wrong with that request. Please try again.