002_index_route.t 264B

1234567891011
  1. use Test::More tests => 2;
  2. use strict;
  3. use warnings;
  4. use lib 'lib';
  5. # the order is important
  6. use SugarTrail;
  7. use Dancer::Test;
  8. route_exists [GET => '/'], 'a route handler is defined for /';
  9. response_status_is ['GET' => '/'], 200, 'response status is 200 for /';