From f8163f38482ebe4a48b08a3f49080821e62e383b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 2 Oct 2012 15:11:59 -0500 Subject: refactor tests --- t/basic.t | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 't/basic.t') 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; -- cgit v1.2.3-54-g00ecf