summaryrefslogtreecommitdiffstats
path: root/t/basic.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-02 15:11:59 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-02 15:31:20 -0500
commitf8163f38482ebe4a48b08a3f49080821e62e383b (patch)
tree83398b2cd786e538487d13e4d50a547d91b0bbbf /t/basic.t
parent5dc5000f75492b6f78d27fab3c56055d4534b5a7 (diff)
downloadtext-handlebars-f8163f38482ebe4a48b08a3f49080821e62e383b.tar.gz
text-handlebars-f8163f38482ebe4a48b08a3f49080821e62e383b.zip
refactor tests
Diffstat (limited to 't/basic.t')
-rw-r--r--t/basic.t15
1 files changed, 6 insertions, 9 deletions
diff --git a/t/basic.t b/t/basic.t
index 28d54c1..361864d 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -1,18 +1,15 @@
#!/usr/bin/env perl
use strict;
use warnings;
+use lib 't/lib';
use Test::More;
+use Test::Handlebars;
-use Text::Handlebars;
-
-my $tx = Text::Handlebars->new;
-
-is(
- $tx->render_string(
- 'Hello, {{dialect}} world!',
- { dialect => 'Handlebars' },
- ),
+render_ok(
+ 'Hello, {{dialect}} world!',
+ { dialect => 'Handlebars' },
'Hello, Handlebars world!',
+ "basic test"
);
done_testing;