about summary refs log tree commit diff
path: root/t/002_index_route.t
blob: d2ff83e525b41093ee5194e252cb8b5b6f6320b5 (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/Dashboard/, 'content looks OK for /';