summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
author-m <example.com>2013-03-19 19:52:26 +0100
committer-m <example.com>2013-03-19 19:52:26 +0100
commitebd870b596a67a55ef3411765fd69504d95fad09 (patch)
tree96deed663f473f212fad4a0ef78bb8adc1b289ef /t
downloadBiblioteka-ebd870b596a67a55ef3411765fd69504d95fad09.tar.gz
Biblioteka-ebd870b596a67a55ef3411765fd69504d95fad09.tar.bz2
Biblioteka-ebd870b596a67a55ef3411765fd69504d95fad09.tar.xz
Biblioteka-ebd870b596a67a55ef3411765fd69504d95fad09.zip
initial version
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..a860e94
--- /dev/null
+++ b/t/001_base.t
@@ -0,0 +1,5 @@
+use Test::More tests => 1;
+use strict;
+use warnings;
+
+use_ok 'biblioteka';
diff --git a/t/002_index_route.t b/t/002_index_route.t
new file mode 100644
index 0000000..12293a9
--- /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 biblioteka;
+use Dancer::Test;
+
+route_exists [GET => '/'], 'a route handler is defined for /';
+response_status_is ['GET' => '/'], 200, 'response status is 200 for /';