002_index_route.t 249B

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