From 495c00a71e8937eb9fd6f85657c8b7d097f1dfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sim=C3=B5es?= Date: Fri, 9 Dec 2011 10:09:17 -0600 Subject: add dzil plugins, use File::Spec exclusively instead of regular expressions --- t/02-app.t | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 't/02-app.t') diff --git a/t/02-app.t b/t/02-app.t index 40d0d27..737008e 100644 --- a/t/02-app.t +++ b/t/02-app.t @@ -1,20 +1,12 @@ use strict; use warnings; -use Test::More import => ["!pass"]; - -use Dancer ':syntax'; -use Dancer::Test; - -plan tests => 3; - -setting views => 't'; -setting template => 'xslate'; - -ok( - get '/' => sub { - template 'index', { loop => [1..2] }; - } -); - -route_exists [ GET => '/' ]; -response_content_like( [ GET => '/' ], qr/1
\n2/ ); +use Test::More tests => 2; +use File::Spec; + +{ + use Dancer::Test; + use lib File::Spec->catdir(qw(t lib)); + use TestApp; + route_exists [ GET => '/' ]; + response_content_like( [ GET => '/' ], qr/1
\n2/ ); +} -- cgit v1.2.3