From c6417cddcec1a3f1cd19502dcb20e24c52f21056 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 25 Feb 2008 18:28:14 +0000 Subject: Adding test for elements.html stuff git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2086 4979c152-3d1c-0410-bac9-87ea11338e46 --- t/04-template-handling.t | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 't/04-template-handling.t') diff --git a/t/04-template-handling.t b/t/04-template-handling.t index e5cd0347..96dde50b 100644 --- a/t/04-template-handling.t +++ b/t/04-template-handling.t @@ -376,4 +376,14 @@ cmp_ok($number->[1], 'eq', 'hello', $template = undef; $form = undef; -$form = new Form; +my $lsmb = LedgerSMB->new(); +$locale = LedgerSMB::Locale->get_handle( ${LedgerSMB::Sysconfig::language} ) + or $lsmb->error( __FILE__ . ':' . __LINE__ . ": Locale not loaded: $!\n" ); + + +$template = new LedgerSMB::Template('user' => {numberformat => '1.000,00'}, + 'format' => 'HTML', path => 't/data', locale => $locale, 'template' => '04-complex_template', 'no_auto_output' => 1); + +$template->render({}); + + -- cgit v1.2.3