summary refs log tree commit diff
path: root/t/002_index_route.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-03-12 20:24:59 +0100
committerfranck cuny <franck@lumberjaph.net>2011-03-12 20:24:59 +0100
commit88dc5c48a1766d9440a1e176d579dfe4714f6ed4 (patch)
tree4c362d486f03e4c735086b107a041ddc566b28ed /t/002_index_route.t
downloadballet-88dc5c48a1766d9440a1e176d579dfe4714f6ed4.tar.gz
initial import
Diffstat (limited to 't/002_index_route.t')
-rw-r--r--t/002_index_route.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/002_index_route.t b/t/002_index_route.t
new file mode 100644
index 0000000..75cfe94
--- /dev/null
+++ b/t/002_index_route.t
@@ -0,0 +1,10 @@
+use Test::More tests => 2;
+use strict;
+use warnings;
+
+# the order is important
+use ballet;
+use Dancer::Test;
+
+route_exists [GET => '/'], 'a route handler is defined for /';
+response_status_is ['GET' => '/'], 200, 'response status is 200 for /';