summaryrefslogtreecommitdiff
path: root/t/01-main.t
diff options
context:
space:
mode:
authorRichard Simões <rsimoes@cpan.org>2011-12-09 10:09:17 -0600
committerRichard Simões <rsimoes@cpan.org>2011-12-09 10:09:17 -0600
commit495c00a71e8937eb9fd6f85657c8b7d097f1dfba (patch)
tree0fa7c861f34880858b42b9f61c09684bb137c656 /t/01-main.t
parentMerge pull request #4 from fayland/master (diff)
downloaddancer-template-xslate-495c00a71e8937eb9fd6f85657c8b7d097f1dfba.tar.gz
add dzil plugins, use File::Spec exclusively instead of regular expressions
Diffstat (limited to 't/01-main.t')
-rw-r--r--t/01-main.t13
1 files changed, 6 insertions, 7 deletions
diff --git a/t/01-main.t b/t/01-main.t
index 97682ed..c0961e3 100644
--- a/t/01-main.t
+++ b/t/01-main.t
@@ -1,16 +1,15 @@
use strict;
use warnings;
use Test::More tests => 2;
-use Dancer::FileUtils 'path';
+use File::Spec::Functions qw(catfile);
use Dancer::Template::Xslate;
-my $engine;
-eval { $engine = Dancer::Template::Xslate->new };
-is $@, '',
- "Dancer::Template::Xslate engine created";
-
-my $template = path('t', 'index.xslate');
+ok(
+ my $engine = Dancer::Template::Xslate->new,
+ "Dancer::Template::Xslate engine created"
+);
+my $template = catfile(qw(t views index.xslate));
my $result = $engine->render(
$template,