about summary refs log tree commit diff
path: root/t/002_index_route.t
blob: 4cab1ed31d14661d6a27facc37ffe881b0a992c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
use Test::More tests => 3;
use strict;
use warnings;

# the order is important
use jitterbug;
use Dancer::Test;

route_exists [GET => '/'], 'a route handler is defined for /';
response_status_is ['GET' => '/'], 200, 'response status is 200 for /';
response_content_like [GET => '/'], qr/Projects/, 'content looks OK for /';