Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bdf4db6c60
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (10 sloc) 0.267 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
use Test;
use Bailador;
use Bailador::Test;

plan 4;

get '/foo' => sub { }
post '/bar' => sub { }

response-status-is 'GET', '/foo', 200;
response-status-isnt 'GET', '/bar', 200;

response-status-is 'POST', '/bar', 200;
response-status-isnt 'POST', '/foo', 200;
Something went wrong with that request. Please try again.