summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-06-13 16:27:11 +0200
committerfranck cuny <franck@lumberjaph.net>2011-06-13 16:27:11 +0200
commit98ec20127d450d4f8223a9a57fab9cbdb8e1dcb6 (patch)
treef6231cb4a433493d8bd912719b9b5943b5e0b3fc /t
downloadstargit-98ec20127d450d4f8223a9a57fab9cbdb8e1dcb6.tar.gz
initial import
Diffstat (limited to 't')
-rw-r--r--t/001_base.t5
-rw-r--r--t/002_index_route.t10
2 files changed, 15 insertions, 0 deletions
diff --git a/t/001_base.t b/t/001_base.t
new file mode 100644
index 0000000..9c16df9
--- /dev/null
+++ b/t/001_base.t
@@ -0,0 +1,5 @@
+use Test::More tests => 1;
+use strict;
+use warnings;
+
+use_ok 'StarGit';
diff --git a/t/002_index_route.t b/t/002_index_route.t
new file mode 100644
index 0000000..457d3ef
--- /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 StarGit;
+use Dancer::Test;
+
+route_exists [GET => '/'], 'a route handler is defined for /';
+response_status_is ['GET' => '/'], 200, 'response status is 200 for /';