diff options
Diffstat (limited to 't/002_index_route.t')
-rw-r--r-- | t/002_index_route.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/002_index_route.t b/t/002_index_route.t new file mode 100644 index 0000000..4cab1ed --- /dev/null +++ b/t/002_index_route.t @@ -0,0 +1,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/Projects/, 'content looks OK for /'; |