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

# the order is important
use mywebapp;
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/It Works.*I'm in.*index.tt/s,
    'content looks OK for /';