From d7080538940d0f9ca89e1b9635d0f92568771261 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 12 Nov 2008 00:14:41 +0000 Subject: Adding contact description to contact list display. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2390 4979c152-3d1c-0410-bac9-87ea11338e46 --- t/04-template-handling.t | 5 +++++ 1 file changed, 5 insertions(+) (limited to 't') diff --git a/t/04-template-handling.t b/t/04-template-handling.t index 49f67bf2..704969c6 100644 --- a/t/04-template-handling.t +++ b/t/04-template-handling.t @@ -393,10 +393,14 @@ my $contact_request = { entity_id => 1, control_code => 'test1', meta_number => 'test1', + credit_id => '1', entity_class => 1, credit_list => [{ entity_class => 1, meta_number => 'test1', }], + contacts => [{contact => 'ctest1', + description => 'dtest1', + contact_class => '1'}], business_id => 1000, business_types => [{ id => 1, description => 'test1' }, { id => 1000, description => 'test2' }], @@ -415,6 +419,7 @@ $contact_template->render($contact_request); my @output = get_output_line_array($contact_template); is(grep (/value="1" selected/, @output), 0, 'Select box Value 1 unselected'); is(grep (/value="1000" selected/, @output), 1, 'Select box Value 1000 selected'); +is(grep (/dtest1/, @output), 1, 'Contact description shows'); # Functions -- cgit v1.2.3