Source

web-dir-for-artwork / Web-Directory-for-Artwork / App-WebWorksDir / t / 002_index_route.t

use Test::More tests => 2;
use strict;
use warnings;

# the order is important
use App::WebWorksDir;
use Dancer::Test;

route_exists [GET => '/'], 'a route handler is defined for /';
response_status_is ['GET' => '/'], 200, 'response status is 200 for /';