Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 15 lines (10 sloc) 0.267 kB
4a026ec @tadzik Add tests for response status
authored
1 use Test;
2 use Bailador;
3 use Bailador::Test;
4
5 plan 4;
6
7 get '/foo' => sub { }
8 post '/bar' => sub { }
9
10 response-status-is 'GET', '/foo', 200;
11 response-status-isnt 'GET', '/bar', 200;
12
13 response-status-is 'POST', '/bar', 200;
14 response-status-isnt 'POST', '/foo', 200;
Something went wrong with that request. Please try again.