From 88dc5c48a1766d9440a1e176d579dfe4714f6ed4 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 12 Mar 2011 20:24:59 +0100 Subject: initial import --- t/001_base.t | 5 +++++ t/002_index_route.t | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 t/001_base.t create mode 100644 t/002_index_route.t (limited to 't') diff --git a/t/001_base.t b/t/001_base.t new file mode 100644 index 0000000..5bb7fe4 --- /dev/null +++ b/t/001_base.t @@ -0,0 +1,5 @@ +use Test::More tests => 1; +use strict; +use warnings; + +use_ok 'ballet'; 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 /'; -- cgit 1.4.1